[issue1602] windows console doesn't print utf8 (Py30a2)

David-Sarah Hopwood report at bugs.python.org
Mon Jan 10 23:22:59 CET 2011


David-Sarah Hopwood <david-sarah at jacaranda.org> added the comment:

Note: Michael Kaplan's code checks whether GetConsoleMode failed due to ERROR_INVALID_HANDLE. My code intentionally doesn't do that, because it is correct and conservative to fall back to the non-console behaviour when there is *any* error from GetConsoleMode. (It could also fail due to not having the GENERIC_READ right on the handle, for example.)

----------

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


More information about the Python-bugs-list mailing list