[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ncurses-bug
Subject:    Re: form library and UTF-8
From:       TheLonelyStar <nabble2 () lonely-star ! org>
Date:       2009-02-27 13:39:16
Message-ID: 22246055.post () talk ! nabble ! com
[Download RAW message or body]


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
> Bug-ncurses@gnu.org
> 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.



_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-ncurses
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic