LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1020|回复: 9

man出现乱码了!!![已解决]

[复制链接]
发表于 2006-4-12 11:42:49 | 显示全部楼层 |阅读模式

  1. /tmp/zmangTPFP3:310: warning: can't find special character `u0754'
  2. /tmp/zmangTPFP3:310: warning: can't find special character `uCCC9'
  3. /tmp/zmangTPFP3:311: warning: can't find special character `u04F0'
  4. /tmp/zmangTPFP3:311: warning: can't find special character `u03EC'
  5. /tmp/zmangTPFP3:314: warning: can't find special character `u03BC'
  6. /tmp/zmangTPFP3:315: warning: can't find special character `u328A929'
  7. /tmp/zmangTPFP3:316: warning: can't find special character `u04A2'
  8. /tmp/zmangTPFP3:317: warning: can't find special character `u04B3'
  9. /tmp/zmangTPFP3:317: warning: can't find special character `u01E0'
  10. /tmp/zmangTPFP3:317: warning: can't find special character `u30F16435'
  11. /tmp/zmangTPFP3:317: warning: can't find special character `u0702'
  12. /tmp/zmangTPFP3:317: warning: can't find special character `uDEF2'
  13. /tmp/zmangTPFP3:317: warning: can't find special character `u032D'
  14. /tmp/zmangTPFP3:318: warning: can't find special character `u01EB'
  15. /tmp/zmangTPFP3:319: warning: can't find special character `uB5134'
  16. /tmp/zmangTPFP3:322: warning: can't find special character `u020B'
  17. /tmp/zmangTPFP3:324: warning: can't find special character `u1009D28A'
  18. /tmp/zmangTPFP3:326: warning: can't find special character `u2B29BB5'
  19. /tmp/zmangTPFP3:326: warning: can't find numbered character 155
  20. /tmp/zmangTPFP3:326: warning: can't find special character `u0333'
  21. /tmp/zmangTPFP3:326: warning: can't find special character `u0296'
  22. /tmp/zmangTPFP3:326: warning: can't find special character `u1DED'
  23. /tmp/zmangTPFP3:326: warning: can't find special character `u01BB'
复制代码

  1. NAME
  2.        ls, dir, vdir - P¼

  3.        ls [] [¼]

  4.        POSIX ±: [-CFRacdilqrtu1]

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

  11. 裨 DESCRIPTION £©
  12.        ³¿¼µ»º¿¸¼µ.br ¡°¿¾¡±¼µ¢£º¼´
  13.        ¼ª¿¿³¬ "." £¨µ±¼£©¡£
  14.        ¡° -d ¡±µÄ¿¼·¿¼¶° -a ¡±
  15.        ³¬¼°.¡±¿ªµ°¿¾¡±
  16.        ¼br µ±¼£¬ÿ¼¨·¿¼¼°
  17.        ÿº¬¼¼£©·³¡£¹ ¡° -l ¡±´攚£¬ÿ¼¾¡ª¡ª¸
复制代码

但奇怪的是用root上的话又是正常的!

  1. LS(1)                            User Commands                           LS(1)

  2. NAME
  3.        ls - list directory contents

  4. SYNOPSIS
  5.        ls [OPTION]... [FILE]...

  6. DESCRIPTION
  7.        List  information  about  the FILEs (the current directory by default).
  8.        Sort entries alphabetically if none of -cftuSUX nor --sort.

  9.        Mandatory arguments to long options are  mandatory  for  short  options
  10.        too.

  11.        -a, --all
  12.               do not hide entries starting with .

  13.        -A, --almost-all
  14.               do not list implied . and ..

  15.        --author
  16.               print the author of each file
复制代码
 楼主| 发表于 2006-4-12 12:30:28 | 显示全部楼层
自己上网看一下,在~/.bashrc   加上alias man='LANG=C man'。但就是不知道我怎么弄成这样的,有知道的能否回个贴。先谢了!
回复 支持 反对

使用道具 举报

发表于 2006-4-12 13:55:19 | 显示全部楼层
估计是装了manpages-zh了吧。

看看它自带的README
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-12 18:30:39 | 显示全部楼层
我没有装这个东西啊,但我装了Debian-reference-zh-cn.看了它的readme,好像也没有这方面的内容。
回复 支持 反对

使用道具 举报

发表于 2006-4-12 20:56:54 | 显示全部楼层
请问楼主你是如何解决的,负点责任呀,贴出来了。免得下一个又问。
回复 支持 反对

使用道具 举报

发表于 2006-4-12 21:04:38 | 显示全部楼层
楼主的解决就是
alias man='LANG=C man'

locale, LESSCHARSET都要检查
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-12 22:16:06 | 显示全部楼层
我的locale 是utf8。但奇怪的是用Root上就没有问题。还有这个“LESSCHARSET”是什么,刚学的Linux,还不是很懂。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-12 22:16:49 | 显示全部楼层
Post by yoshubom
请问楼主你是如何解决的,负点责任呀,贴出来了。免得下一个又问。

我不是把方法贴上了吗?
回复 支持 反对

使用道具 举报

发表于 2006-4-13 19:40:54 | 显示全部楼层
楼主显然安装了manpages-zh,但是Debian缺省是不支持的,下面是我的ls的man结果,对比一下就知道了
  1. LS(1)                                                                    LS(1)
  2. NAME
  3.        ls, dir, vdir - 列目录内容
  4. 提要
  5.        ls [选项] [文件名...]
  6.        POSIX 标准选项: [-CFRacdilqrtu1]
  7. GNU 选项 (短格式):
  8.        [-1abcdfgiklmnopqrstuxABCDFGLNQRSUX"]  [-w cols] [-T cols] [-I pattern]
  9.        [--full-time]    [--format={long,verbose,commas,across,vertical,single-
  10.        column}]                            [--sort={none,time,size,extension}]
  11.        [--time={atime,access,use,ctime,status}] [--color[={none,auto,always}]]
  12.        [--help] [--version] [--]
  13. 描述( DESCRIPTION )
  14.        程序ls先列出非目录的文件项,然后是每一个目录中的
  15.        可显示文件。如果没有选项之外的参数【译注:即
  16.        文件名部分为空】出现,缺省为 "." (当前目录)。选
  17.        项 -d 使得目录与非目录项同样对待。除非 -a
  18.        选项出现,文件名以.开始的文件不属可显示文
  19. Manual page ls(1) line 1
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-4-13 19:41:15 | 显示全部楼层
又多回复了一次,唉
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表