[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: form_driver and non-ASCII-characters

From: Moritz Beller
Subject: Re: form_driver and non-ASCII-characters
Date: Sun, 24 Apr 2005 10:38:41 +0200

On Sat, 23 Apr 2005 18:35:37 -0400
Thomas Dickey <address@hidden> wrote:

> There are two problems:  it doesn't call setlocale().  The other is
> that the ch variable in selectCommunication() should be an int rather
> than a char.  That's causing it to be passed to form_driver() as -19
> rather than 237 (sign-extension).  g++ warns about this because the
> case statement cannot be properly matched either:

Thank you so much! I applied your suggestions and it worked all of a

I think you should mention to use the int type for ANSI characters in
the "NCURSES Programming HOWTO", though. It may also be wise to have a
line saying "make sure your locales are set correctly. You need to
set ... to be able to get non-ASCII characters."

(o_    web      http://www.4momo.de
//\    mail     momo at 4momo dot de
V_/_   gpg      http://gpg.notlong.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]