我的enviroment是不是有问题

为当前最终发行版之前的所有版本提供支持
回复
头像
pihou
帖子: 173
注册时间: 2005-11-12 12:28
送出感谢: 0
接收感谢: 0

我的enviroment是不是有问题

#1

帖子 pihou » 2006-11-02 22:40

安装的时候选的语言是en_US,结果现在的默认编码成了ANSI_X3.4-1968而不是UTF-8

我的enviroment是
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:
/usr/games"
LANGUAGE="en_US:en"
LC_ALL ="en_US.UTF-8"
LC_CTYPE=zh_CN.UTF-8
LANG=en_GB.UTF-8
GST_ID3_TAG_ENCODING=GBK

而我运行了sudo dpkg-reconfigure locales只是:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_CTYPE = "zh_CN.UTF-8",
LC_ALL = "en_US.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
Generation complete.
而没有让我设置

该怎么改成utf-8呀? 另外我仍然想桌面是en_US的
头像
sinoyster
帖子: 958
注册时间: 2005-10-16 13:24
来自: 四川成都
送出感谢: 2 次
接收感谢: 0
联系:

#2

帖子 sinoyster » 2006-11-02 23:59

locale 不对

1.编辑 /etc/belocs/locale-gen.conf
把PURGE改为yes
2.在/var/lib/locales/supported.d目录下设置你需要的locale
比如只保留 en zh local
其中en为: en_US.UTF-8 UTF-8
zh为: zh_CN.UTF-8 UTF-8
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
local为: en_US.UTF-8 UTF-8
3. 运行locale-gen
sudo locale-gen
Thank you Ubuntu Team!!!!
I still can't belive this is free...
fallening
帖子: 131
注册时间: 2006-10-30 19:54
来自: Hannover
送出感谢: 0
接收感谢: 0

#3

帖子 fallening » 2006-11-03 21:32

代码: 全选

1.编辑 /etc/belocs/locale-gen.conf
把PURGE改为yes
之后需要修改回来么?
回复

回到 “老旧版本支持”