"Martin v. Löwis" <[EMAIL PROTECTED]>: > #include <ncurses.h> > #include <unistd.h> > > int main() > { > WINDOW *win = initscr(); > waddstr(win, "\303\244\n"); > waddstr(win, "\342\200\242\n"); > waddstr(win, "\344\272\272\n"); > refresh(); > sleep(3); > endwin(); > } > > which shows the same behaviour.
I think you have to link with ncursesw and call setlocale: // gcc -Wall x.c -lncursesw && ./a.out #include <locale.h> #include <ncurses.h> #include <unistd.h> int main() { WINDOW *win = initscr(); setlocale(LC_ALL, ""); waddstr(win, "\303\244\n"); waddstr(win, "\342\200\242\n"); waddstr(win, "\344\272\272\n"); refresh(); sleep(3); endwin(); return 0; } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]