Re: UTF-8 locale and Unix keyboard handler


Subject: Re: UTF-8 locale and Unix keyboard handler
From: Vlad Harchev (hvv@hippo.ru)
Date: Mon Jan 22 2001 - 00:38:51 CST


On Sun, 21 Jan 2001, Tomas Frydrych wrote:

 Hi Tomas, Hi Dom,

 Just curious - how other gtk-based apps (or even standard gtk widgets)
behave under UTF8 locale? Have you tested it?

>
> Hi Vlad and Dom,
>
> > Vlad:
> > I don't use utf8 locale, but according to various sources, input in X under
> > utf8 locale will work correctly only with XFree86-4.0.2 (and using libX11
> > supplied with it). It's also somewhat questionable whether current gdk will
> > work correctly under utf8 locale (not that I have sharp suspictions - just a
> > healthy pessimism).
>
> You are right, UTF-8 locale only works with XF 4.0.2 AND glibc 2.2
> and I also think your suspicions about gdk are right.
>
> > Dom:
> > How can I duplicate this bug? I'd like to fix it ASAP and need
> > some more information in order to track it down.
>
> To reproduce the problem you need to run XF 4.0.2 and glibc 2.2,
> then you need to setup a UTF-8 locale; you will have to create the
> locale files using localedef, you will find the details in the Unicode
> Howto. Then you have to set the locale, I think think this needs to
> be done before X is started. Then assign a letter that requires
> multibyte representation in UTF-8 to a key on the keyboard. The
> method I use is assigning to the key 0x01000000 + UCS value of
> the char, i.e., for Hebrew aleph which is u05d0, 0x010005d0, but
> one can equally use the predefined X hebrew_aleph / 0xce0 to
> accomplish the same. You can test that the key works with with
> UTF-8 enabled xterm (see the Unicode Howto on xterm). Then try
> to use the key to input the character into AW. You should see a
> debug message 'input aborted due to lack of information'.
>
> As I said, I also suspect that the problem is in GDK, which we use
> to process keyboard messages from X, for GDK returns empty
> string from processing the keyboard event. I will make some more
> enquiries about GDK and UTF-8 locales.
>
> Tomas
>
> *********************************************
> tomas@frydrych.net / www.frydrych.net
> PGP keys: http://www.frydrych.net/contact.html
>

 Best regards,
  -Vlad



This archive was generated by hypermail 2b25 : Mon Jan 22 2001 - 01:11:16 CST