bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: form library and UTF-8


From: Thomas Dickey
Subject: Re: form library and UTF-8
Date: Thu, 26 Feb 2009 11:45:40 -0500 (EST)

On Thu, 26 Feb 2009, TheLonelyStar wrote:


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?

no (we haven't seen more than a few lines from your program)

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.



_______________________________________________
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]