[issue42261] Windows legacy I/O mode mistakenly ignores the device encoding
Eryk Sun
report at bugs.python.org
Wed Nov 4 11:13:08 EST 2020
Eryk Sun <eryksun at gmail.com> added the comment:
> The solution here is to fix config_init_stdio_encoding() to use
> GetConsoleCP() and GetConsoleOutputCP() to build a "cpXXX" string.
But, as I mentioned, that's only possible by replacing config->stdio_encoding with three separate settings: config->stdin_encoding, config->stdout_encoding, and config->stderr_encoding.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42261>
_______________________________________
More information about the Python-bugs-list
mailing list