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

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



这个方法有效,谢谢!


在 11-2-10,BOYPT<pentie@gmail.com> 写道:
> /etc/default/locale
>
> 如果不存在这个文件,或者格式不对,运行update-locale LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8
> 等参数。
>
> 2011/2/10 Liang Suilong <liangsuilong@gmail.com>
>
>> 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?
>>>>
>>>
>>>
>>>
>>> --
>>> 无能者无所求,饱食而遨游,泛若不系之舟
>>>
>>
>>
>
>
> --
> Linuxer using Arch/Ubuntu, Pythoner, Geek
> --> Blog: http://apt-blog.net
> --> FB: http://www.facebook.com/boypt
>


Reply to: