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

bmw
December 13th, 2004, 09:13
Sam, did you install the port /usr/ports/chinese/big5con? I'm not sure you have the correct console fonts either. I believe that the big5con port will supply or document the right fonts you need.

Cheers!

samsamwun
December 13th, 2004, 09:24
Sam, did you install the port /usr/ports/chinese/big5con? I'm not sure you have the correct console fonts either. I believe that the big5con port will supply or document the right fonts you need.

Cheers!

Thanks for the guidelinea. After installed big5con, I found a big5conf.cfg file and thre is a line documented the coding:
# Coding
# SingleByte DoubleByte 8bitCode
# ISO8895-[123456789], JISX0201.1976-0
# BIG5.HKU-0, GB2312.1980-1, JISX0208.1983-0, KSC5601.1987-0
# EUC, SJIS, BIG5

zh_TW.big5:Coding
ISO8859-1 BIG5.ETen.3.10-1 BIG5

Even with these explaination, I don't know where I should put these values to.

Thanks again
sam

samsamwun
December 13th, 2004, 09:43
I changed the .login_conf file in user account, but the problem is still the same:

me:\
:charset=iso-8859-1:\
:lang=zh_TW.ISO8859-1:
#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

Sam.

samsamwun
March 15th, 2007, 22:25
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

Hi, after few years left thsi configuration with 5.3, I tried it in 6.2, but having the same problem. The date command still show garbage.

Can anyone point me in the right direction for setting this up?

Thanks
S