> On Июль 20, 2015, 12:32 п.п., David Faure wrote: > > This is rather surprising. How does it compile? std::cout doesn't have > > operator<< for QString, and QString's implicit conversion to char * is > > disabled by -DQT_NO_CAST_TO_ASCII (which is set, otherwise that would be a > > bug in the first place). > > > > I'm pretty sure that toLocal8Bit().constData() is the proper way to give a > > QString to cout/cerr... > > Aleix Pol Gonzalez wrote: > Well QDebug can provide it quite easily, which is what I assumed. > > Otherwise, maybe converting toStdString would be better...?
Please see this definition at the beginning of the .cpp file: static QTextStream cout(stdout); - Alexander ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/124404/#review82708 ----------------------------------------------------------- On Июль 20, 2015, 12:11 п.п., Alexander Potashev wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://git.reviewboard.kde.org/r/124404/ > ----------------------------------------------------------- > > (Updated Июль 20, 2015, 12:11 п.п.) > > > Review request for KDE Frameworks and Plasma. > > > Repository: kpackage > > > Description > ------- > > kpackagetool: Fix output of non-latin text to stdout > > > Diffs > ----- > > src/kpackagetool/kpackagetool.cpp 16d3f0268788d3cefff86542359e8416388542a9 > > Diff: https://git.reviewboard.kde.org/r/124404/diff/ > > > Testing > ------- > > `kpackagetool5 --list-types` now has readable output with Russian > localization. > > > Thanks, > > Alexander Potashev > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel