[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wide characters, get_wch() and form_driver() - cannot get them worki
From: |
Thomas Dickey |
Subject: |
Re: wide characters, get_wch() and form_driver() - cannot get them working together. |
Date: |
Wed, 18 Jun 2008 19:37:58 -0400 (EDT) |
On Wed, 18 Jun 2008, Adam Spragg wrote:
I configured ncurses with the command line:
./configure --prefix=/home/adam --enable-widec --with-shared
and checked the test program was loading the new copy of the library
with strace.
Anything else I can check on my end?
Using ncurses's trace, I can see that the form_driver is seeing the
parameter passed to it as sign-extended. That's happening in this
line:
if ((i = form_driver(form, buf[j])) != E_OK) {
since 'buf' is a (by default on some platforms) signed char.
A quick check with that changed to unsigned char seems to work.
I built ncurses using the --with-trace option (which makes it slightly
slower, and bigger, but is useful for debugging), and set the
NCURSES_TRACE environment variable to turn on the tracing feature...
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
- wide characters, get_wch() and form_driver() - cannot get them working together., Adam Spragg, 2008/06/17
- Re: wide characters, get_wch() and form_driver() - cannot get them working together., Thomas Dickey, 2008/06/17
- Re: wide characters, get_wch() and form_driver() - cannot get them working together., Adam Spragg, 2008/06/17
- Re: wide characters, get_wch() and form_driver() - cannot get them working together., Adam Spragg, 2008/06/19
- Re: wide characters, get_wch() and form_driver() - cannot get them working together., Thomas Dickey, 2008/06/18
- Re: wide characters, get_wch() and form_driver() - cannot get them working together.,
Thomas Dickey <=
- Re: wide characters, get_wch() and form_driver() - cannot get them working together., Adam Spragg, 2008/06/19
- Re: wide characters, get_wch() and form_driver() - cannot get them working together., Thomas Dickey, 2008/06/19
- Re: wide characters, get_wch() and form_driver() - cannot get them working together., Adam Spragg, 2008/06/19