man page problem

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

man page problem

文章pooh9038 » 週二 1月 21, 2003 7:16 pm

Today I notice that the man page of some command ,such as ls,rm can be shown in the X-Window terminal(crxvt,gnome-terminal) properly.

When I run "man ls",the following error is shown:

/tmp/zmanEadoXn:267: warning: can't find special character `u95DC'
/tmp/zmanEadoXn:267: warning: can't find special character `u5F88'
/tmp/zmanEadoXn:268: warning: can't find special character `u8457'
/tmp/zmanEadoXn:268: warning: can't find special character `u5FEB'
/tmp/zmanEadoXn:268: warning: can't find special character `u901F'
/tmp/zmanEadoXn:271: warning: can't find special character `u64F4'
/tmp/zmanEadoXn:271: warning: can't find special character `u5C55'
/tmp/zmanEadoXn:271: warning: can't find special character `u7531'
/tmp/zmanEadoXn:271: warning: can't find special character `u6210'

and the man page will be shown in this manner:


LS(1) LS(1)



NAME
ls, dir, vdir -



ls [] [...]

POSIX : [-CFRacdilqrtu1]

GNU ():
[-1abcdfgiklmnopqrstuxABCDFGLNQRSUX"] [-w cols] [-T cols] [-I pattern]
[--full-time] [--format={long,verbose,commas,across,vertical,single-
column}] [--sort={none,time,size,extension}]
[--time={atime,access,use,ctime,status}] [--color[={none,auto,always}]]
[--help] [--version] [--]

DESCRIPTION
ls

"."
-d -a
.




-l
512




:?

However the man pages for some commands ,e.g bash,esd are display properly as they are in English.

Big5 characters,such as"總計", are displayed properly in the terminal.

I have installed the manpage-zh,do I need to make further configuration?
OS:Debian 5.0 stable(kernel 2.6.26-2-686)
Motherboard:Pcchips M848A
CPU:Duron 850 Mhz
Ram:Kingston 512Mb DDR
Harddisk:Segate 60G(7200rpm)
CD-RW:LG CR-RW CED-8120B
Display:GeforceFX5200
Lan:SIS900
Sound:SIS7012(CMI9739)
Monitor:Compucon H530S 15"LCD
pooh9038
懵懂的國中生
懵懂的國中生
 
文章: 153
註冊時間: 週二 10月 15, 2002 11:17 am
來自: 香港

re:man page problem

文章octapult » 週二 1月 21, 2003 8:44 pm

安裝 manpgage-zh 的話,必須 export LANG=zh_TW.Big5,man 才能看到繁體中文。

不過我個人並不建議安裝這個 package,一來翻譯是對岸的風格/語法、直接轉成繁體中文而已,我們不一定能夠接受;二來轉碼並不完整,仍然有不少亂碼 (也有可能是我沒有設定好);最後一點比較重要的是,翻譯的進度並不完整,有的指令的 manpage 甚至漏掉不少內容。
octapult
摩托學園!學園長們
摩托學園!學園長們
 
文章: 512
註冊時間: 週六 9月 07, 2002 10:30 pm
來自: Seyda Neen, Morrowind

re:man page problem

文章pooh9038 » 週二 1月 21, 2003 9:21 pm

小弟在香港居住,兩岸的用詞都能適應,沒有困難。

這現象好像是在中文化X-Window後才出現。

在我的.bashrc及.xesssion都有export LANG=zh_TW.Big5,否則在terminal中便不能顯示中文字,看來需作進一步的設定。從manpages-zh的Readme中,得知可在/usr/lib/man.conf中更改,可是我的系統卻沒有man.conf或類似名稱的file.

從前在Mandrake8.2中有些manpage是中文,好像是自動搞定的。
OS:Debian 5.0 stable(kernel 2.6.26-2-686)
Motherboard:Pcchips M848A
CPU:Duron 850 Mhz
Ram:Kingston 512Mb DDR
Harddisk:Segate 60G(7200rpm)
CD-RW:LG CR-RW CED-8120B
Display:GeforceFX5200
Lan:SIS900
Sound:SIS7012(CMI9739)
Monitor:Compucon H530S 15"LCD
pooh9038
懵懂的國中生
懵懂的國中生
 
文章: 153
註冊時間: 週二 10月 15, 2002 11:17 am
來自: 香港


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客