[Development] qPrintable encoding issues
Olivier Goffart
olivier at woboq.com
Fri Feb 28 19:00:20 CET 2014
On Friday 28 February 2014 09:29:53 Thiago Macieira wrote:
> Em sex 28 fev 2014, às 18:09:36, Olivier Goffart escreveu:
> > > So:
> > > qDebug("%ls\n", qWPrintable(s));
> >
> > That will not work because sizeof(wchar_t) is 4 on linux.
> > (and QString::vsprintf wands %ls to be ushort*)
>
> Then we fix QString::vsprintf.
>
> We can use %S, which is an alias for %ls on regular printf.
Could we just accept plain QString then? perhaps %q or %qs
--
Olivier
Woboq - Qt services and support - http://woboq.com - http://code.woboq.org
More information about the Development
mailing list