samsamwun
December 13th, 2004, 07:28
Hi,
I m trying to setup a correct Locale for chinese in FreeBSD 5.3, but chinese filename is appeared as garbage after completed the configuration.
I used the following instruction to setup Locale and Console:
1. add the following two lines to /etc/csh.login file:
setenv LANG zh_TW.Big5
setenv MM_CHARSET Big5
2. add the following four lines to /etc/login.conf file:
zh_TW:TW:\
:charset=Big5:\
:lang=zh_TW.Big5:\
:tc=default:
3. su - jack
add the following few lines to the .login_conf file:
me:\
:lang=zh_TW.Big5:\
:lc_all=zh_TW.Big:\
:lc_collate=zh_TW.Big5:\
:lc_ctype=zh_TW.Big5:\
:lc_messages=zh_TW.Big5:\
:lc_monetary=zh_TW.Big5:\
:lc_numeric=zh_TW.Big5:\
:lc_time=zh_TW.Big5:\
:charset=big5:\
:xmodifiers="@im=xcin": #Setting the XIM Input Server
4. add the following three lines to /etc/rc.conf file:
font8x16=iso-8x16
font8x14=iso-8x14
font8x8=iso-8x8
5. reboot.
When I login user account jack, the following chinese filename and the date command appeared as garbage:
%ls
隤?鞈潮????
%date
2004年12月13日 周一 19時23分53秒 HKT
%
Have I missed anything in the above configuration?
Thanks
Sam
I m trying to setup a correct Locale for chinese in FreeBSD 5.3, but chinese filename is appeared as garbage after completed the configuration.
I used the following instruction to setup Locale and Console:
1. add the following two lines to /etc/csh.login file:
setenv LANG zh_TW.Big5
setenv MM_CHARSET Big5
2. add the following four lines to /etc/login.conf file:
zh_TW:TW:\
:charset=Big5:\
:lang=zh_TW.Big5:\
:tc=default:
3. su - jack
add the following few lines to the .login_conf file:
me:\
:lang=zh_TW.Big5:\
:lc_all=zh_TW.Big:\
:lc_collate=zh_TW.Big5:\
:lc_ctype=zh_TW.Big5:\
:lc_messages=zh_TW.Big5:\
:lc_monetary=zh_TW.Big5:\
:lc_numeric=zh_TW.Big5:\
:lc_time=zh_TW.Big5:\
:charset=big5:\
:xmodifiers="@im=xcin": #Setting the XIM Input Server
4. add the following three lines to /etc/rc.conf file:
font8x16=iso-8x16
font8x14=iso-8x14
font8x8=iso-8x8
5. reboot.
When I login user account jack, the following chinese filename and the date command appeared as garbage:
%ls
隤?鞈潮????
%date
2004年12月13日 周一 19時23分53秒 HKT
%
Have I missed anything in the above configuration?
Thanks
Sam