[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: |
Fri, 27 Feb 2009 05:39:16 -0800 (PST) |
Hi,
I was not aware, that setlocal has to be called. I thought setting a correct
LC_ALL Enviorement variable would be enough.
I added the "setlocal(LC_ALL,"");" and everything is fine now!
Thanks!
Nathan
Kevin Monceaux wrote:
>
> Nathan,
>
> On Thu, 26 Feb 2009, TheLonelyStar wrote:
>
>> 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?
>
> It's been a while since I tinkered with the forms library but I think I've
> found something that might help. I had a basic.c example that I think I
> got from a tutorial somewhere. I had never tried it with ncursesw and
> formsw. I compiled it against the wide libraries and it segfaulted when I
> tried entering a wide character. Comparing it to a program I have that
> handles wide characters properly I couldn't see any significant
> differences in the form loop. Finally I looked in the right spot. Do
> you have:
>
> #include <locale.h>
>
> in your program and a call similar to:
>
> setlocale(LC_ALL, "");
>
> just before initscr()?
>
> Adding the above to the basic.c example I had eliminated the segfaults.
>
>
>
> Kevin
> http://www.RawFedDogs.net
> http://www.WacoAgilityGroup.org
> Bruceville, TX
>
> Si hoc legere scis nimium eruditionis habes.
> Longum iter est per praecepta, breve et efficax per exempla!!!
>
>
>
> _______________________________________________
> 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-tp22179838p22246055.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, 2009/02/26
- 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 <=