|
发表于 2010-4-27 23:07:02
|
显示全部楼层
Post by goodjob66;2086199
好像LANG和LC_ALL是一样的,只要设置其中一个就可以显示中文了
- $ date
- 2010年 04月 27日 星期二 23:01:10 CST
- $ LANG= date
- 2010年 04月 27日 星期二 23:01:16 CST
- $ LC_ALL= date
- 2010年 04月 27日 星期二 23:01:21 CST
- $ LANG= LC_ALL= date
- Tue Apr 27 23:01:29 CST 2010
- $
复制代码
- $ locale
- LANG=zh_CN.UTF-8
- LC_CTYPE="zh_CN.UTF-8"
- LC_NUMERIC="zh_CN.UTF-8"
- LC_TIME="zh_CN.UTF-8"
- LC_COLLATE="zh_CN.UTF-8"
- LC_MONETARY="zh_CN.UTF-8"
- LC_MESSAGES="zh_CN.UTF-8"
- LC_PAPER="zh_CN.UTF-8"
- LC_NAME="zh_CN.UTF-8"
- LC_ADDRESS="zh_CN.UTF-8"
- LC_TELEPHONE="zh_CN.UTF-8"
- LC_MEASUREMENT="zh_CN.UTF-8"
- LC_IDENTIFICATION="zh_CN.UTF-8"
- LC_ALL=zh_CN.UTF-8
- $
- $ LANG= locale
- LANG=
- LC_CTYPE="zh_CN.UTF-8"
- LC_NUMERIC="zh_CN.UTF-8"
- LC_TIME="zh_CN.UTF-8"
- LC_COLLATE="zh_CN.UTF-8"
- LC_MONETARY="zh_CN.UTF-8"
- LC_MESSAGES="zh_CN.UTF-8"
- LC_PAPER="zh_CN.UTF-8"
- LC_NAME="zh_CN.UTF-8"
- LC_ADDRESS="zh_CN.UTF-8"
- LC_TELEPHONE="zh_CN.UTF-8"
- LC_MEASUREMENT="zh_CN.UTF-8"
- LC_IDENTIFICATION="zh_CN.UTF-8"
- LC_ALL=zh_CN.UTF-8
- $
- $ LC_ALL= locale
- LANG=zh_CN.UTF-8
- LC_CTYPE="zh_CN.UTF-8"
- LC_NUMERIC="zh_CN.UTF-8"
- LC_TIME="zh_CN.UTF-8"
- LC_COLLATE="zh_CN.UTF-8"
- LC_MONETARY="zh_CN.UTF-8"
- LC_MESSAGES="zh_CN.UTF-8"
- LC_PAPER="zh_CN.UTF-8"
- LC_NAME="zh_CN.UTF-8"
- LC_ADDRESS="zh_CN.UTF-8"
- LC_TELEPHONE="zh_CN.UTF-8"
- LC_MEASUREMENT="zh_CN.UTF-8"
- LC_IDENTIFICATION="zh_CN.UTF-8"
- LC_ALL=
- $
- $ LANG= LC_ALL= locale
- LANG=
- LC_CTYPE="POSIX"
- LC_NUMERIC="POSIX"
- LC_TIME="POSIX"
- LC_COLLATE="POSIX"
- LC_MONETARY="POSIX"
- LC_MESSAGES="POSIX"
- LC_PAPER="POSIX"
- LC_NAME="POSIX"
- LC_ADDRESS="POSIX"
- LC_TELEPHONE="POSIX"
- LC_MEASUREMENT="POSIX"
- LC_IDENTIFICATION="POSIX"
- LC_ALL=
- $
- $
复制代码
debian 系系统,打过补丁,locale 还会多输出变量 "LANGUAGE=zh_CN"。 |
|