STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12567>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to