[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: form library and UTF-8
From: |
Kevin Monceaux |
Subject: |
Re: form library and UTF-8 |
Date: |
Thu, 26 Feb 2009 12:26:09 -0600 (CST) |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
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!!!
- 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 <=
- Re: form library and UTF-8, TheLonelyStar, 2009/02/27