Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.3.0 Alpha
-
None
Description
The documentation of QString::sprintf says:
The %ls escape sequence expects a pointer to a zero-terminated array of unicode characters of type ushort (as returned by QString::utf16()).
However, e.g.
QString world("World"); QString().sprintf("Hello %ls", str.utf16());
will generate a gcc warning:
warning: format '%ls' expects argument of type 'wchar_t*', but argument 3 has type 'const ushort* {aka const short unsigned int*}' [-Wformat=]