* Jan-Simon Möller <dl9pf@gmx.de> [Jul 29. 2008 13:39]:
Hi!
I wonder how i can get special characters "äöü" to be displayed in the ncurses gui. I use python-yui (libyui-bindings for python). An example is attached.
The "äüö" works for QT UI, but not for ncurses.
This is going to be ugly ... Doing a 'full debug' run, YNCurses reports the following: <_M_> [ncurses] YNCursesUI.cc:59 YNCursesUI(): Start YNCursesUI <_M_> [ncurses] YNCursesUI.cc:75 YNCursesUI(): setenv LC_CTYPE: C encoding: ANSI_X3.4-1968 <_M_> [ncurses] NCstring.cc:325 setTerminalEncoding(): Terminal encoding SET to: ANSI_X3.4-1968 <dbg> [ncurses] NCApplication.cc:56 setLanguage(): Language: de_DE.UTF-8 Encoding: ANSI_X3.4-1968 $LANG, $LC_CTYPE and $LC_ALL report "de_DE.UTF-8". Still, YNCurses sets the encoding to "ANSI_X3.4-1968" Even doing an explict setConsoleFont("(K", "lat9w-16.psfu", "trivial", "", "en_US.UTF-8") doesn't help since 'setfont' cannot open the pty. Further down the debug log one finds the following <dbg> [ncurses] NCstring.cc:144 RecodeFromWchar(): iconv_open( UTF-8, "WCHAR_T" ) <dbg> [ncurses] NCstring.cc:144 RecodeFromWchar(): Hello,Wörld! Longest line: 10 So *apparently* the string is read correctly. However, a few more lines down: <dbg> [ncurses] NCstring.cc:144 RecodeFromWchar(): iconv_open( ANSI_X3.4-1968, "WCHAR_T" ) <ERR> [ncurses] NCstring.cc:187 RecodeFromWchar(): ERROR iconv: 84 Now I'm clueless. Any ncurses / console experts out there ? Klaus -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org