[Top][All Lists]

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

Problems with get_wch() and wide characters

From: Kim Tore Jensen
Subject: Problems with get_wch() and wide characters
Date: Wed, 24 Dec 2008 14:45:53 +0100
User-agent: Mutt/1.5.18 (2008-05-17)


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.

Any suggestions on how to make ncurses recognize these characters?

Best regards,
Kim Tore Jensen

Attachment: pgpY0pRL8hQAl.pgp
Description: PGP signature

reply via email to

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