Eryk Sun <eryk...@gmail.com> added the comment:

In Windows, the standard I/O encoding of the spawn_python() child defaults to 
the process active code page, i.e. GetACP(). In Windows 10, the active code 
page can be set to UTF-8 at the system or application level, but most systems 
and applications still use a legacy code page. Python's default can be 
overridden to UTF-8 for standard I/O via PYTHONIOENCODING, or for all I/O via 
PYTHONUTF8 or "-X utf8=1". I would recommend using one of these UTF-8 options 
instead of trying to make a test work with the legacy code page. There is no 
guarantee, and should be no guarantee, that a filesystem path, which is 
Unicode, can be encoded using a legacy code page.

----------
nosy: +eryksun

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45176>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to