[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

Nicholas Cole report at bugs.python.org
Wed Mar 7 08:22:21 CET 2012


Nicholas Cole <nicholas.cole at gmail.com> added the comment:

I hope that this is the right bug to file this on (I'm getting lost in all of the curses bugs!).

I'm testing out the 3.3a1, and I've run into the following issue.  On previous releases addch() could accept curses.ACS_HLINE and similar.

Attempting to use the same code now raises the exception:

OverflowError: byte doesn't fit in chtype.

I'm sure this is related to the new code that uses addwstr(), but currently code that used to work will crash.

I can't work out a fix myself, because I don't fully understand the problem, but I'm happy to provide sample code if it will help.

Nicholas

----------

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


More information about the Python-bugs-list mailing list