[issue12567] curses implementation of Unicode is wrong in Python 3

STINNER Victor report at bugs.python.org
Fri Jul 15 01:09:34 CEST 2011


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

getkey.patch fixes window.getkey(): use get_wch() instead of getch() to handle correctly non-ASCII characters. I tested with the key é (U+00E9) with ISO-8859-1 and UTF-8 locale encoding: getkey() gives the expected result (but addstr is unable to display it, because addstr encodes the string to UTF-8 instead of the locale encoding).

----------
keywords: +patch
Added file: http://bugs.python.org/file22662/getkey.patch

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


More information about the Python-bugs-list mailing list