python+ncurses: I can't display accents

Thomas Dickey dickey at saltmine.radix.net
Sat Jan 27 08:36:19 EST 2007


Fabrice DELENTE <fdelente at mail.cpod.fr> wrote:
> My system is Linux, and the distribution is Slackware 10.1.

> I have

> /lib/libncurses.so.5.4
> /lib/libncursesw.so.5.4

> so I even have the wide-chars version available. Any hint on the python
> configuration? I didn't find any function that would allow the unrestricted
> display of 8-bit chars.

It's more complicated than that:  python's loading "ncurses"
dynamically.

It doesn't matter much (to python) which one it loads, but it's
specifying the library name explicitly.  At the same time, some other
packages (such as readline) are _separately_ loading the ncurses library
- and they also specify a library name.  Rather than abstracting that
stuff out to another (more easily changed) level, it's embedded in the code.

If the initialization script is changed to load "ncursesw" then python
can use ncursesw without further change.  There are a few patches to the
configuration that I've seen mentioned in the bug reports to enable
python to do this.  Those are patches to python of course...

(this was a topic of discussion on this newsgroup about a year ago).

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



More information about the Python-list mailing list