File::encodeName() and Utf8 as the default encoding under Qt5

Thiago Macieira thiago at macieira.org
Wed Oct 29 09:02:59 PDT 2014


On Wednesday 29 October 2014 17:32:58 Lubomir I. Ivanov wrote:
> now, i know how to fix the issue by simply not use File::encodeName()
> at all on Win32 and use QString::toUtf8() instead but is there a
> cleaner way with no #ifdefs?
> 
> not sure if QTextCodec::setCodecForLocale() should be set to Utf8 on
> Win32...

Hmm... I'm not sure what will happen if you setCodecForLocale on Windows, I've 
never tried.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the subsurface mailing list