LinuxSir.cn,穿越时空的Linuxsir!

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

兄弟们有没有碰到国中文man 里面全显示方块的情况?

[复制链接]
发表于 2007-6-30 22:34:04 | 显示全部楼层 |阅读模式
例如你的local是中文
然后man useradd
然后全是方块
知道如何解决否?
发表于 2007-7-1 01:07:54 | 显示全部楼层
我的是乱码
urxvt
回复 支持 反对

使用道具 举报

发表于 2007-7-1 09:04:58 | 显示全部楼层
什么编码都不好使,就是乱码。
回复 支持 反对

使用道具 举报

发表于 2007-7-1 10:28:57 | 显示全部楼层
修改下/usr/share/misc/man.conf

  1. # Useful paths - note that COL should not be defined when
  2. # NROFF is defined as "groff -Tascii" or "groff -Tlatin1";
  3. # not only is it superfluous, but it actually damages the output.
  4. # For use with utf-8, NROFF should be "nroff -mandoc" without -T option.
  5. # (Maybe - but today I need -Tlatin1 to prevent double conversion to utf8.)
  6. ...
  7. #NROFF          /usr/bin/nroff -Tlatin1 -mandoc -c
  8. NROFF           /usr/bin/nroff -mandoc -c
  9. ...
复制代码

定义下环境变量:
export LESSCHARSET=utf-8
export GROFF_ENCODING=utf-8

当然,最好是装上新些的groff,考虑到中文的手册寥寥,怕麻烦的话,装个新点的groff,直接用groof -Kutf8 -Tutf8 -man ??.1 来看好了

附件是arch里wmii下的截图,zh_CN.UTF-8的locale

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2007-7-1 12:09:33 | 显示全部楼层
学了一招。。试试看。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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