ugroh@t-online.de (Ulrich Groh) writes:
On Wednesday 28 November 2001 23:30, Mike Fabian wrote:
~$ XMODIFIERS="@im=kinput2" LC_ALL=ja_JP.eucJP gvim
Also please try some other applications capable of Japanese input instead of gvim, for example rxvt, to find out whether you have a problem with Japanese input in general or especially with gvim.
With LC_ALL=jp_JP.eucJP everything is working now (gvim, emacs, ..). You should add this to your CJK manual.
LC_ALL is more than necessary. Actually you need only LC_CTYPE and
this is mentioned in my SuSE-CJK pages in the XIM section.
The important variable for XIM is only LC_CTYPE, when setting only LC_CTYPE
to Japanese should work as well. With
~$ LANG=de_DE LC_CTYPE=ja_JP gvim
Japanese input in gvim works for me. You can see that in the
environment of gvim started with the above commandline only LC_CTYPE
was set to a Japanese locale by replacing 'gvim' with the 'locale'
command:
~$ LANG=de_DE LC_CTYPE=ja_JP locale
LANG=de_DE
LC_CTYPE=ja_JP
LC_NUMERIC="de_DE"
LC_TIME="de_DE"
LC_COLLATE=POSIX
LC_MONETARY="de_DE"
LC_MESSAGES="de_DE"
LC_PAPER="de_DE"
LC_NAME="de_DE"
LC_ADDRESS="de_DE"
LC_TELEPHONE="de_DE"
LC_MEASUREMENT="de_DE"
LC_IDENTIFICATION="de_DE"
LC_ALL=
~$
Whether you use LC_CTYPE=ja_JP or LC_CTYPE=ja_JP.eucJP doesn't matter
the former is just an alias for the latter.
When you use LC_ALL, you force *all* LC_* variables to this value:
mfabian@gregory:~$ LC_ALL=en_US LANG=de_DE LC_CTYPE=ja_JP locale
LANG=de_DE
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US
mfabian@gregory:~$
With this setting, Japanese input using XIM would not work,
LC_ALL=en_US overrides LC_CTYPE=ja_JP here.
These locale specific variables are already documented in the info
pages of glibc, but maybe I should add some notes to my SuSE-CJK pages
as well.
--
Mike Fabian