[Martin v. Löwis] > I also tried compiling/linking with ncursesw instead; this didn't > change anything.
Right, python Modules/_cursesmodule.c has no explicit support for ncursesw functions. The reason the python curses code displays "ä" is purely accidental: python believes it is sending *two* valid characters to ncurses, and ncurses believes it is sending *two* valid characters to the terminal. Both layers are mistaken. curses only displays what it believes to be valid characters, and this seems to be based on ISO-8859. You might notice that "ä" works and "Ä" does not. (Try it!) In the ISO-8859 family, bytes 0x80-0xbf are invalid - and the UTF-8 encoding of "Ä" is 0xc3 0x84. Peter
signature.asc
Description: Digital signature