$LANG Variable

Li Qing qingl.beta at gmail.com
Mon Sep 19 00:27:22 CDT 2005


On Sun, Sep 18, 2005 at 03:48:36PM -0400, Lukas Sabota wrote:
> On 9/18/05, Daniel Robitaille <robitaille at ubuntu.com> wrote:
> 
> > 
> >
> >>On Sun, 2005-18-09 at 13:52 -0400, Lukas Sabota wrote:
> >>  
> >>
> >>>On most of all my programs, I am getting this warning:
> >>>Warning: locale not supported by Xlib, locale set to C
> >>>My LANG variable is set to en_US.  Is that what it is supposed to be?
> >>>Should the LANG variable be set to C?
> >>>    
> >>
> >
> >
> >try with:
> >sudo dpkg-reconfigure locales
> >
> >in order to set your current locale. Then check if it is the same as
> >the one you selected in Language Selector (in menu System->Admin)
> >
> > 
> >
> I've done all this and I'm still receiving warnings on most programs.  
> For example:
> lukas at gnarley:~$ gnome-calculator
> 
> (gnome-calculator:6679): Gdk-WARNING **: locale not supported by Xlib
> 
> (gnome-calculator:6679): Gdk-WARNING **: cannot set locale modifiers
> 
> ^X
> lukas at gnarley:~$ xeyes
> Warning: locale not supported by Xlib, locale set to C
> ^X
> lukas at gnarley:~$ echo $LANG
> en_US
> 
> Why isn't my locale supported by xlib?  What is supported by my locale?
> What's wrong with setting my locale to C? How do I do that?
> 
> Lukas
> 

It seems that it's not the libc missing locales, but something wrong
with xlib or whatever. In my case (locale set to zh_CN.utf8), I can display
multibyte characters just fine, but are unable to input them, tried 2
input methods (SCIM and fcitx) both didn't work.




More information about the ubuntu-devel mailing list