|
From: | Thomas Dickey |
Subject: | Re: form_driver and wide-char |
Date: | Wed, 6 Dec 2006 19:34:54 -0500 (EST) |
On Wed, 6 Dec 2006, Brian Tan wrote:
Thomas Dickey wrote:On Wed, 6 Dec 2006, Brian Tan wrote:HiI 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-charThe rpm spec file says it builds libncurses and libncursesw, and the corresponding libform, libformw, etc. You should link against -lformw -lncursesw, etcYes, 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. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |