bug-ncurses
[Top][All Lists]
Advanced

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

Re: Problems with get_wch() and wide characters


From: Thomas Dickey
Subject: Re: Problems with get_wch() and wide characters
Date: Thu, 25 Dec 2008 07:01:10 -0500 (EST)

On Wed, 24 Dec 2008, Kim Tore Jensen wrote:

Hello,

I am attempting to get a wide character using the get_wch function:

{
        int chartype;
        wint_t ch;
        chartype = get_wch(&ch);
}

When typing ASCII characters as 'a', 'b', 'c' etc., they are returned
with chartype = 0 and ch = 'a', 'b', 'c' etc.

However, when typing non-ASCII characters as the Norwegian letters
'?', '?', '?', they are not recognized. get_wch() returns only ERR and
sets ch to 0.

I use raw() and keypad(), and my LANG is exported to "nb_NO.utf8".
System locales in general work well and my shell interprets these
characters OK.

did your program do
        setlocale(LC_ALL, "");

?

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

reply via email to

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