On Wed, 6 Dec 2006, Brian Tan wrote:
Thomas Dickey wrote:
On Wed, 6 Dec 2006, Brian Tan wrote:
Hi
I am trying to use form_driver with utf8 Chinese input. It seems
that form_driver (FC6 ncurses-devel-5.5-24.20060715 FC6) not
supporting wide-char
The rpm spec file says it builds libncurses and libncursesw,
and the corresponding libform, libformw, etc.
You should link against -lformw -lncursesw, etc
Yes, as mentioned in my email, program is linked against formw and
ncursesw. form_driver ignores any non-ascii char. Is there a "w"
equivalent of form_driver (like get_wch vs getch) that I can use ?
sorry - I misread the email. form_driver() only knows how to read bytes.
I hadn't really considered that, since most of the internals of
form_driver() are also using bytes rather than wide characters.
It might be nice to have an alternate interface, but I was more
interested in making the form_driver() interface work properly.
Reading your email more closely, I'm not sure whether you are reporting
a problem with set_field_buffer() or with form_driver() - or both.