[issue18118] curses utf8 output broken in Python2

STINNER Victor report at bugs.python.org
Mon Jun 3 09:40:39 CEST 2013


STINNER Victor added the comment:

"Sounds sensible. Are you aware of a workaround for this issue? I.e.
is there any way to force Python2.7 to use the wide mode for
outputting characters?"

I don't think that it is possible to workaround this issue, it is a
bug in the design of curses, related to Unicode. I suppose that
libncursesw uses an array of wchar_t characters when the *_wch() and
*wstr() functions are used, whereas your version looks to use an array
of char* characters and so is unable to understand that a character is
composed of two bytes (ex: b"\xc3\xa4" for u"ä").

----------

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


More information about the Python-bugs-list mailing list