=begin
ncurses supplies a ncursesw library that works as drop-in replacement for the ncurses with added multibyte character support. Just updating the library test enables printing UTF-8 for me.
In message "Re: [ruby-core:21094] [Bug #975] ruby curses extension does not support multibyte characters"
on Sun, 4 Jan 2009 03:17:20 +0900, Michal Suchanek redmine@ruby-lang.org writes:
|ncurses supplies a ncursesw library that works as drop-in replacement for the ncurses with added multibyte character support. Just updating the library test enables printing UTF-8 for me.
As far as I know, ncursesw is NOT a drop-in replacement. It has whole
new API around cchar_t, wchar_t and wint_t, e.g. wadd_wch in place of
waddch. Am I missing something?
In message "Re: [ruby-core:21094] [Bug #975] ruby curses extension does not support multibyte characters"
on Sun, 4 Jan 2009 03:17:20 +0900, Michal Suchanek <redmine@ruby-lang.org> writes:
|ncurses supplies a ncursesw library that works as drop-in replacement for the ncurses with added multibyte character support. Just updating the library test enables printing UTF-8 for me.
As far as I know, ncursesw is NOT a drop-in replacement. It has whole
new API around cchar_t, wchar_t and wint_t, e.g. wadd_wch in place of
waddch. Am I missing something?
Yes.
You do not need to use that additional wide character API to get utf-8
characters printed on the screen.