On sábado, 29 de outubro de 2016 15:11:10 PDT Bernhard Lindner wrote: > Please note this questions in StackExchange: > > http://stackoverflow.com/q/40318671/1421332 > > It asks why operator<<(const char *string) expects latin-1 strings > (especially considering that Qt source files shall be UTF-8 now). > > Is that desired behavior?
No. It's something I didn't notice when I changed the encoding for literals in Qt 5.0. See commit cec8cdba4d1b856e17c8743ba8803349d42dc701 http://code.qt.io/cgit/qt/qtbase.git/commit/? id=cec8cdba4d1b856e17c8743ba8803349d42dc701 > Is there an easy way to stream a lot of UTF-8 string literals (in an UTF-8 > source code) without wrapping each literal in a QString()? No. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest