Mailing List Archive

Support open source code!

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

Re: XIM, kinput2 & Tk (Jim Breen) writes:

> >> From: "Stephen J. Turnbull" <>
> >> (2) It explicitly opens an X Input Method:
> >> 
> >>     (a) It sets the program's locale using the standard library
> >>         function setlocale(), either from the environment (default) or
> >>         explicitly.  Eg, "ja_JP.eucJP".  I think it specifically looks
> >>         at the LANG and LC_ALL variables, but not at any of the
> >>         subcategories.
> Where in the configuration is LANG, etc. set? I note that in my
> /etc/X11/xinit/xinitrc.d/xinput it looks at LC_ALL and if it contains
> ja_JP it starts kinput2. Presumably LC_ALL gets set before then, but
> where?

On a RedHat system, it is set in /etc/sysconfig/i18n:$ cat /etc/issue

    Red Hat Linux release 6.2 (Zoot)
    Kernel 2.2.16 on an i686$ cat i18n

seems to be still the same on 7.0:$ cat /etc/issue

    Red Hat Linux release 7.0 (Guinness)
    Kernel 2.2.16-22 on an i586$ cat i18n

> >> In your case, you need (a) XMODIFIERS="" 
> Got that.
> >> and (b)
> >> LANG="ja_JP.eucJP" (probably, works for me but YYMV) in your
> >> environment or you will lose.  Of course, you may lose anyway; this is
> >> XIM.
> Doesn't work. Possibly because LC_ALL contains "C", according to the
> return from setlocale().

Yes, probably. LC_ALL overrides all LC_* variables.

Mike Fabian   <>

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links