[issue1602] windows console doesn't print or input Unicode

STINNER Victor report at bugs.python.org
Wed Oct 19 22:57:39 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

win_console.patch: a more complete prototype

 * patch the site module to replace sys.stdout and sys.stderr by UnicodeConsole and BytesConsole classes which use WriteConsoleW and WriteConsoleA
 * UnicodeConsole inherits from io.TextIOBase and BytesConsole inherits from io.RawIOBase
 * Revert the workaround for WriteConsoleA bug from io.FileIO

sys.stdout and/or sys.stderr are only replaced if there are not redirected.

----------
Added file: http://bugs.python.org/file23470/win_console.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1602>
_______________________________________


More information about the Python-bugs-list mailing list