[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] Non-us keyboard layout mishandling.
From: |
Thomas Dickey |
Subject: |
Re: [vile] Non-us keyboard layout mishandling. |
Date: |
Tue, 21 Dec 2010 07:01:47 -0500 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Thu, Dec 16, 2010 at 11:06:40PM +0300, Ramil Farkhshatov wrote:
> Thomas Dickey <address@hidden> wrote:
>
> > On Thu, 16 Dec 2010, Thomas Dickey wrote:
> >
> > >>> Is that the wide-character version of ncurses? (libncursesw).
> > >>> ncursesw provides get_wch(), which decoded the UTF-8. For instance, I
> > >>> use the ncurses test-programs to check this area.
> > >>
> > >> I linked my test-program against ncursesw. get_wch() just hangs and
> > >> does not return for a long time when I enter something cyrillic.
> > >> getchar() and getch() returns multiple values for each keypress, which I
> > >> decode to ensure that the encoding is UTF-8. Don't know whether this
> > >> information is relevant/useful since vile does not use get_wch().
> >
> > I forgot to ask if your test-program uses setlocale(), e.g.,
> > setlocale(LC_ALL, "");
>
> I forgot about setlocale(). With it get_wch() works perfectly. Thanks.
Back to your original report, I see that I didn't use all of the information
from that. The comment about setting 'arg' points me to a different area of
the code. I made some fixes last night based on that, which should help.
See
ftp://invisible-island.net/temp/vile-9.8c4.patch.gz
(essentially, those are the changes to bind.c, main.c and estruct.h)
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature
- Re: [vile] Non-us keyboard layout mishandling., (continued)
- Re: [vile] Non-us keyboard layout mishandling., Thomas Dickey, 2010/12/12
- Re: [vile] Non-us keyboard layout mishandling., Ramil Farkhshatov, 2010/12/12
- Re: [vile] Non-us keyboard layout mishandling., Thomas Dickey, 2010/12/12
- Re: [vile] Non-us keyboard layout mishandling., Ramil Farkhshatov, 2010/12/15
- Re: [vile] Non-us keyboard layout mishandling., Thomas Dickey, 2010/12/15
- Re: [vile] Non-us keyboard layout mishandling., Ramil Farkhshatov, 2010/12/15
- Re: [vile] Non-us keyboard layout mishandling., Thomas Dickey, 2010/12/16
- Re: [vile] Non-us keyboard layout mishandling., Thomas Dickey, 2010/12/16
- Re: [vile] Non-us keyboard layout mishandling., Ramil Farkhshatov, 2010/12/16
- Re: [vile] Non-us keyboard layout mishandling., Thomas Dickey, 2010/12/16
- Re: [vile] Non-us keyboard layout mishandling.,
Thomas Dickey <=
- Re: [vile] Non-us keyboard layout mishandling., Ramil Farkhshatov, 2010/12/21
- Re: [vile] Non-us keyboard layout mishandling., Thomas Dickey, 2010/12/21