[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 请问 Debian 系统默认的 locale 在哪设置的?



dpkg-reconfigure locales

话说 UTF-8 同 utf8 没啥区别吧。

Fedora && Debian User, former Ubuntu User
My Page: http://www.liangsuilong.info
Fedora Project Contributor -- Packager && Ambassador
https://fedoraproject.org/wiki/User:Liangsuilong


2011/2/10 Shell Xu <shell909090@gmail.com>
看看/etc/envirement还有效么?
也许改为了/etc/default/envirement。

在 2011年2月10日 下午10:04,Mickey Fox <acrofox@gmail.com>写道:

新安的 Squeeze,普通用户查看 locale 结果为:
LANG=zh_CN.utf8
LC_CTYPE=zh_CN.utf8
LC_NUMERIC=zh_CN.utf8
LC_TIME=zh_CN.utf8
LC_COLLATE=zh_CN.utf8
LC_MONETARY=zh_CN.utf8
LC_MESSAGES=zh_CN.utf8
LC_PAPER=zh_CN.utf8
LC_NAME=zh_CN.utf8
LC_ADDRESS=zh_CN.utf8
LC_TELEPHONE=zh_CN.utf8
LC_MEASUREMENT=zh_CN.utf8
LC_IDENTIFICATION=zh_CN.utf8
但是用 su 进入 root 后,查看 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=
确认普通用户和 root 用户的 .bashrc 中都没有设置 locale 的语句,不知道是哪个地方导致普通用户的 locale 设置中
UTF-8 变成了 utf8?



--
无能者无所求,饱食而遨游,泛若不系之舟


Reply to: