[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

Inada Naoki report at bugs.python.org
Mon May 31 23:00:37 EDT 2021


Inada Naoki <songofacandy at gmail.com> added the comment:

> In Windows, pydoc uses the old "more.com" pager with a temporary file that's encoded with the default encoding, which is the process active codepage (i.e. "ansi" or "mbcs"), unless UTF-8 mode is enabled. The "more.com" utility, however, decodes the file using the console's current input codepage from GetConsoleCP(), and then it writes the decoded text via wide-character WriteConsoleW(). 

Then, we need to check `[System.Console]::InputEncoding` too. It is a `GetConsoleCP()`.

----------

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


More information about the Python-bugs-list mailing list