Problem with curses and UTF-8

Thomas Dickey dickey at saltmine.radix.net
Wed Feb 8 06:20:49 EST 2006


"Martin v. Löwis" <martin at v.loewis.de> wrote:
> Ian Ward wrote:
>> Any Ideas?

> I think there is one or more ncurses bugs somewhere.

indeed.  It might be nice to report them rather than jawing about it.

> The ncurses documentation suggests that you should link with
> ncurses_w instead of linking with ncurses - you might try
> that as well. If it helps, please do report back.

ncursesw

> Ultimately, somebody will need to debug ncurses to find out
> what precisely happens, and why.

no need for debugging - it's a well-known problem.  UTF-8 uses more than
one byte per cell, normal curses uses one byte per cell.  To handle UTF-8,
you need ncursesw.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



More information about the Python-list mailing list