[Development] Shall we turn on /utf-8 compiler option when build qt for Windows?

Thiago Macieira thiago.macieira at intel.com
Mon Jan 30 17:30:49 CET 2017

On segunda-feira, 30 de janeiro de 2017 09:56:46 PST Giuseppe D'Angelo wrote:
> Il 30/01/2017 02:21, Thiago Macieira ha scritto:
> > So, we should:
> >  a) still avoid non-ASCII in our source files, aside from comments
> >  b) allow non-ASCII in comments, as needed
> Didn't we have issues with UTF-8 in comments too, when using MSVC?

Yes, which means that if it chokes on KDAB's name in qglobal.h, too bad.

> >  c) turn the -utf-8 option on for MSVC2015U3.
> But just for Qt own build, not push this option onto the users. Also,
> does this fix anything? Is MSVC 2015 U3 the only one complaining, and we
> can live with UTF-8 in the source when using other compilers?

This will affect the Qt build only. Only MSVC 2015 U3 gets the fix, the older 
versions and MSVC 2013 will still be affected.

Sorry, tough luck for the others.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list