[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: form library and UTF-8
From: |
TheLonelyStar |
Subject: |
Re: form library and UTF-8 |
Date: |
Thu, 26 Feb 2009 08:32:12 -0800 (PST) |
Hi,
OK, I just do not get it!
The demo_form example is rather complicated.
I can not find any difference I find significant to my example.
Does anybody know what the difference is?
Or does somebody know an easy UTF-8 form example?
Thanks!
Nathan
TheLonelyStar wrote:
>
> True!
>
> My locale:
>
>> echo $LC_ALL
> en_US.utf8
>
> Using ncursesw, the demo_forms works perfectly now!
> But I must admit it is complicated. I will need my time to work it
> through.
>
> My own program still segfaults.
> Maybe someone can give me a hint, my corrent form-loop looks like this:
>
> while(!stop)
> {
> int ch=getch();
> switch(ch)
> {
> //Some cases for handling keys like return, backspace and arrow keys
> default:
> form_driver(form, ch);
> break;
> }
> }
>
> Thanks!
> Nathan
>
> Thomas Dickey-2 wrote:
>>
>> On Wed, 25 Feb 2009, TheLonelyStar wrote:
>>
>>>
>>> Hi,
>>>
>>> the demo_forms does not segfault! But it also does not accept ä,ö or ü,
>>> it
>>> just beeps.
>>
>> Perhaps you're using libncurses (8-bit library) with a UTF-8 locale
>> (which would need libncursesw).
>>
>> I don't recall seeing your locale mentioned.
>>
>>>
>>>
>>> Thomas Dickey-2 wrote:
>>>>
>>>> On Tue, Feb 24, 2009 at 03:04:40AM -0800, TheLonelyStar wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I tried the examples from here:
>>>>> http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/forms.html
>>>>>
>>>>> I have one problem: When I enter an Umlaut (ä,ü,ö), they segfault!
>>>>> Can this be fixed?
>>>>
>>>> Perhaps those have a bug. ncurses has its own examples in its
>>>> test-directory (in the sources). For instance, test/demo_forms
>>>>
>>>> --
>>>> Thomas E. Dickey <address@hidden>
>>>> http://invisible-island.net
>>>> ftp://invisible-island.net
>>>>
>>>>
>>>> _______________________________________________
>>>> Bug-ncurses mailing list
>>>> address@hidden
>>>> http://lists.gnu.org/mailman/listinfo/bug-ncurses
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/form-library-and-UTF-8-tp22179838p22200143.html
>>> Sent from the Gnu - Ncurses mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> _______________________________________________
>>> Bug-ncurses mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/bug-ncurses
>>>
>>
>> --
>> Thomas E. Dickey
>> http://invisible-island.net
>> ftp://invisible-island.net
>> _______________________________________________
>> Bug-ncurses mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/bug-ncurses
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/form-library-and-UTF-8-tp22179838p22227932.html
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.
- form library and UTF-8, TheLonelyStar, 2009/02/24
- Re: form library and UTF-8, Thomas Dickey, 2009/02/24
- Re: form library and UTF-8, TheLonelyStar, 2009/02/25
- Re: form library and UTF-8, Thomas Dickey, 2009/02/25
- Re: form library and UTF-8, TheLonelyStar, 2009/02/25
- Re: form library and UTF-8,
TheLonelyStar <=
- Re: form library and UTF-8, Thomas Dickey, 2009/02/26
- Re: form library and UTF-8, Kevin Monceaux, 2009/02/26
- Re: form library and UTF-8, TheLonelyStar, 2009/02/27