STINNER Victor <vstin...@python.org> added the comment:
> It's doing this now, so seems like it has been fixed: % env -i ./python.exe > (...) Right. It's correct to close the issue. The PEP 540 added a UTF-8 Mode. This mode is enabled if Python is started with the "C" or "POSIX" locale (LC_CTYPE category). If the UTF-8 Mode is enabled, Python uses UTF-8 for its "filesystem" encoding: * https://docs.python.org/dev/library/os.html#python-utf-8-mode * https://docs.python.org/dev/glossary.html#term-filesystem-encoding-and-error-handler Moreover, the PEP 538 also tries to use a UTF-8 variable of "C" and "POSIX" locales, which also fix this issue. I documented how Python configures its "filesystem encoding" at: https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.filesystem_encoding ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25867> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com