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

> config_init_stdio() is not called in an isolated configuration:

config_init_stdio wasn't being called anyway since Py_Initialize uses 
_PyConfig_InitCompatConfig. The issue was primarily due to the LC_CTYPE locale 
being set to the default user locale, as I discussed in msg378024.

Note that for legacy mode, i.e. Py_LegacyWindowsStdioFlag = 1, there's no 
simple way to not modify the standard I/O files. The io stack needs binary 
mode. You'd have to use and modify duped file descriptors.

----------

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

Reply via email to