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

[debian-users:47610] Re: Can't input Japanese on Etch [解決]



Keni Matsuda $B$5$s(B

$B$3$s$K$A$O!#(B
$B$d$C$H!"2r7h$7$^$7$?!#(B
$BLdBj$O!"(B/etc/default/locale$BFb$N(B export LC_CTYPE $B$G$7$?!#(B

LANG=C
LC_CTYPE=C
LC_COLLATE=C
export LC_CTYPE

$B$3$l$G!"@5>o$KF0$-$^$7$?!#(B
$B>\$7$/$O8+$F$$$^$;$s$,!"(BLC_CTYPE$B$,(Bexport$B$5$l$J$$$H8=:_$N(Blocale$B$,@5$7$/(B
$B%;%C%H$5$l$J$$$h$&$K$J$C$?$h$&$G$9!#$G$9$N$G!"$9$Y$F(B export$B$7$F$*$/$Y$-(B
$B$J$s$G$7$g$&!#(B
$B$3$l$G!"(Bgnome-terminal$B$N8=:_$N(Blocale$B$b(BUTF-8$B$K$J$j!"(B..xsession-errors$B$O2<(B
$B5-$NDL$j$G$9!#(B

tom-lin@nomura:~$ cat .xsession-errors
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w
/var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l
":0" "nomura"
/etc/gdm/Xsession: Beginning session setup...
Setting IM through im-switch for locale=all_ALL.
Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to
/etc/X11/xinit/xinput.d/default.

locale$B$,2?$+$H$$$&$3$H$G$O$J$$$h$&$G$9$M!#(B

$BD9FnMN0l(B $BMM$bD9$$4V!"@[$$1QJ8$K$*$D$-9g$$D:$-!"$"$j$,$H$&$4$6$$$^$7$?!#(B


$BLnB<(B



> $B>>ED(B($B7r0l(B)$B$G$9!#(B
> $B2#$+$i<:Ni$7$^$9!#(B
>
> $B%m!<%1!<%k$N@_Dj$,$*$+$7$/$J$C$F$7$^$C$?$H$$$&A0Ds$G(B
> $B@5$7$$$H;W$$$^$9!#(B
> $B$^$:$OC1=c$K!"(B/etc/default/locale $B$r2<5-$N$h$&$KJQ99$7!"(B
>
> LANG=ja_JP.UTF-8
> LC_CTYPE=ja_JP.UTF-8
> LC_ALL=ja_JP.UTF-8
> export LANG
> export LC_CTYPE
> export LC_ALL
>
> $B0lEY(B gdm $B$rMn$H$7$F$+$i:F5/F0$7!"$=$l$+$i:FEY%m%0%$%s$9$k$H$I$&$J$j$^$9$+(B?
>
> ----
> Keni
>
>   
>> From: Tomoo Nomura <nomurat@xxxxxxxxx>
>> Subject: [debian-users:47608] Re: Can't input Japanese on Etch
>> Date: Tue, 7 Nov 2006 09:16:15 +0900
>> Message-ID: <454FD059.7070504@xxxxxxxxx>
>>     
>
>   
>> I temporarily set LNG=ja_JP in /etc/X11/Xsession.d/90im-switch and
>> .xsession-errors is sure to show followings.
>>
>> tom-lin@nomura:~$ cat .xsession-errors
>> /etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
>> /etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w
>> /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l
>> ":0" "nomura"
>> /etc/gdm/Xsession: Beginning session setup...
>> xrdb: colon missing on line 2, ignoring line
>> Setting IM through im-switch for locale=ja_JP.
>> Start IM through /etc/X11/xinit/xinput.d/ja_JP linked to
>> /etc/X11/xinit/xinput.d/kinput2-canna.
>>
>> Even though locale changed to ja_JP, current locale in gnome-terminal
>> continues to display ANSI_X3.4-1968.
>>
>>
>> Regards,
>> Tomoo
>>
>>     
>>> Dear $BD9FnMN0l(B,
>>>
>>> tom-lin@root:/etc/X11/xinit/xinput.d# ps ax | grep kinput2
>>> 3526 ? S 0:00 kinput2 -canna
>>> 4148 pts/0 D+ 0:00 grep kinput2
>>> tom-lin@nomura:~$ echo $LANG
>>> ja_JP.UTF-8
>>> tom-lin@nomura:~$ su
>>> Password:
>>> tom-lin@root:/home/nomura# echo $LANG
>>> C
>>> tom-lin@root:/etc# cat environment
>>> LANG="ja-JP.UTF-8"
>>> LANGUAGE="ja_JP:ja:en_US:en"
>>> tom-lin@root:/etc/default# cat locale
>>> #LANG=en_US
>>> LANG=C
>>> LC_COLLATE=C
>>> LC_CTYPE=C
>>>
>>> I set LANG=C in root account and /etc/default due to Postgresql's
>>> character order issue. Is this a problem ?
>>>
>>> I temporarily changed LANG=ja_JP.UTF-8 in /etc/default/local and restart.
>>>
>>> tom-lin@root:/home/nomura# echo $LANG
>>> ja_JP.UTF-8
>>> tom-lin@nomura:~$ cat .xsession-errors
>>> /etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
>>> /etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w
>>> /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l
>>> ":0" "nomura"
>>> /etc/gdm/Xsession: Beginning session setup...
>>> xrdb: colon missing on line 2, ignoring line
>>> Setting IM through im-switch for locale=C.
>>> Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to
>>> /etc/X11/xinit/xinput.d/default.
>>>
>>> The locale is still set to C.
>>> As you mentioned previously, I suppose "Setting IM through im-switch for
>>> local=C." must be a culprit.
>>>
>>>
>>> Regards,
>>> Tomoo
>>>
>>>   
>>>       
>>>> $BD9Fn$G$9!#(B
>>>>
>>>> $BA0$N%a!<%k$G=q$-K:$l$^$7$?$,!"(Bdefoma $B$H(B x-ttcidfont-conf
>>>> $B%Q%C%1!<%8$O%$%s%9%H!<%k$5$l$F$$$^$9$M!#(B
>>>>
>>>> Nomura $B$5$s$N%a!<%k$h$j(B [debian-users:47602]
>>>>   
>>>>     
>>>>         
>>>>> I suppose gnome might miss the current locale. Because,
>>>>>     
>>>>>       
>>>>>           
>>>>   
>>>>     
>>>>         
>>>>> It is ANSI_X3.4-1968.
>>>>>     
>>>>>       
>>>>>           
>>>> echo $LANG $B$N7k2L$O$I$&$J$k$N$G$9$+!#(B
>>>>
>>>> $BA0$N%a!<%k$K(B([debian-users:47601])$B$3$&$$$&$H$3$m$,$"$j$^$7$?!#(B
>>>>
>>>>   Setting IM through im-switch for locale=C.
>>>>   Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to
>>>> /etc/X11/xinit/xinput.d/default.
>>>>
>>>> $B$3$N(B locale=C $B$H$$$&$N$,IT;W5D$J$N$G$9!#;d$N>l9g$O!"(B
>>>> locale=ja_JP $B$K$J$j$^$9!#$3$3$,(B locale=C $B$K$J$k$H$9$k$H!"(B
>>>> $B$*$=$i$/(B /etc/environment $B$,(B LANG=C $B$K$J$C$F$$$k$N$G$O(B
>>>> $B$J$$$G$7$g$&$+!#2?$+M}M3$,$"$C$F!"(BLANG=C $B$K$J$5$C$F$$$k$N$G$9$+!#(B
>>>> $BEvJ}$G$O<!$N$h$&$K$J$C$F$$$^$9!#(B
>>>>
>>>>   $ cat /etc/environment 
>>>>   LANG="ja_JP.UTF-8"
>>>>   LANGUAGE="ja_JP:ja:en_GB:en"
>>>>
>>>> $B$=$7$F!"$3$3$,(B LANG=C $B$K$J$C$F$$$F!"$=$l$,$:$C$H7Q>5$5$l$k$H(B
>>>> gnome-terminal $B$N(B current_locale $B$,(B ANSI_X3.4-196 $B$K$J$k$h$&$G$9!#(B
>>>>
>>>> $B$5$F!">/!9C&@~$7$^$9$,!"(Betch $B$G$O(B sarge $B;~Be$N$h$&$K!"(B.xsession
>>>> $B$K(B IM $B$r5/F0$9$k%3%^%s%I$r=q$/I,MW$,$J$/$J$j$^$7$?!#A0$b$C$F(B
>>>> im-switch -s kinput2-canna $B$J$I$H<B9T$7$F$*$1$P!"(BX $B$N5/F0;~$K(B
>>>> /etc/X11/Xsession.d/90im-switch $B7PM3$G(B IM $B$,F0$/$h$&$K$J$C$F$$$^$9!#(B
>>>> $B$?$@$7!"$=$N$?$a$K$O!"(B/etc/environment $B$N(B LANG $B$,(B ja_JP.*** $B$G(B
>>>> $B$J$1$l$P$J$i$J$$$h$&$G$9!#(BLANG $B$,(B C $B$@$C$?$j$7$?>l9g$O(B
>>>> ($B8@$$49$($l$P!"(B/etc/X11/Xsession.d/90im-switch $B$G(B /etc/X11/xinit/
>>>> xinput.d/{kinput2-canna,scim} $B$J$I$rFI$_9~$^$J$$>l9g$O!K!"(B
>>>> /etc/X11/Xsession.d/90im-switch $B$G(B IM $B$,<B9T$5$l$^$;$s$+$i!"(B
>>>> $B:#$^$G$I$*$j(B $HOME/.xsession $B$"$?$j$G(B IM $B$r5/F0$7$J$1$l$P(B
>>>> $B$J$i$J$$$N$G$7$g$&!#(B
>>>>
>>>> $B$H$3$m$G!"(B gdm $B$+$i%m%0%$%s$7$F$$$k>l9g!"(B$HOME/.xsession $B$,(B
>>>> $BFI$_9~$^$l$k$?$a$K$O!"%;%C%7%g%s$O(B default $B$G$J$1$l$P$J$j$^$;$s!#(B
>>>> $B!V%;%C%7%g%s$NA*Br!W$G(B gnome $B$rA*$V$H!"(B.xsession $B$OFI$_9~$^$l$J$$(B
>>>> $B$N$G$9!#$=$N$X$s$O$I$&$J$C$F$$$k$G$7$g$&$+!]!]$H!"$3$l$r8@$&$?$a$K(B
>>>> $BD9!9$H=q$$$F$-$?$o$1$G$9!#(B
>>>>
>>>>   
>>>>     
>>>>         
>>>>> Can I compulsory set the locale as ja_JP.UTF-8 in gnome session ?
>>>>>     
>>>>>       
>>>>>           
>>>> $B$3$l$b!"(B.xsession $B$,FI$_9~$^$l$l$P!"2r7h$9$k$N$G$O$J$$$+$H;W$$$^$9!#(B
>>>> $B$=$3$G(B LANG $B$r;XDj$7$F$$$^$9$+$i!#(B
>>>>
>>>> $BG0$N$?$a!"$b$&0lEY(B ps ax | grep kinput2 $B$r<B9T$7$F(B kinput2 $B$,K\Ev$K(B
>>>> $BF0$$$F$$$k$+$I$&$+$b!"3NG'$7$F$*$$$F$/$@$5$$!#(B
>>>>
>>>> $B:G6a$OAa?2$,=,47$J$N$G!"L2$/$J$C$F$-$^$7$?!#$=$N$?$a!"$\$1$?(B
>>>> $B$3$H$r=q$$$F$$$k$+$b$7$l$^$;$s$,!"8fMF<O$/$@$5$$!#(B
>>>>  
>>>>   
>>>>     
>>>>         
>>>   
>>>       
>> -- 
>> ****** Nomura Technical Management Office Ltd. *****************
>>  Tomoo Nomura      nomura@xxxxxxxxx       http://www.tmo.co.jp/ 
>>     Phone: +81-78-797-0240 Fax: +81-78-797-0241
>>  Worldwide Airline Timetable 'Flight Planner'
>>  European Electronic Timetable 'HAFAS'         ValueFax Support
>> ****************************************************************
>>
>>
>>     
>
>
>   


-- 
****** Nomura Technical Management Office Ltd. *****************
 Tomoo Nomura      nomura@xxxxxxxxx       http://www.tmo.co.jp/ 
    Phone: +81-78-797-0240 Fax: +81-78-797-0241
 Worldwide Airline Timetable 'Flight Planner'
 European Electronic Timetable 'HAFAS'         ValueFax Support
****************************************************************