[Development] qPrintable encoding issues

Koehne Kai Kai.Koehne at digia.com
Fri Feb 28 14:00:31 CET 2014


> -----Original Message-----
> From: development-bounces+kai.koehne=digia.com at qt-project.org
> [...]
> qDebug("%ls", string.utf16());

This will actually not compile with gcc, because we tell the compiler explicitly we're printf-compatible:

error: format '%ls' expects argument of type 'wchar_t*', but argument 1 has type 'const ushort* {aka const short unsigned int*}' [-Werror=format=]

Argh.

Kai



More information about the Development mailing list