[issue43174] Windows: Use /utf-8 compiler flag

Steve Dower report at bugs.python.org
Tue Feb 9 15:48:10 EST 2021


Steve Dower <steve.dower at python.org> added the comment:

The new property should go into PCbuild/pyproject.props, but otherwise seems like an okay change.

It *will* cause any string literals (const char *) to be UTF-8, but they ought to all be ASCII anyway. It shouldn't affect resource files, because those have a code page override in the source files. (Potentially a "#pragma code_page(1252)" might make more sense for our build, but I'm not sure, and I'm just as happy to got to UTF-8 if it doesn't break anything.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43174>
_______________________________________


More information about the Python-bugs-list mailing list