又是 dpkg-reconfigure locale的问题

系统字体配置、中文显示和输入法问题
回复
adof
帖子: 10
注册时间: 2006-06-29 4:49

又是 dpkg-reconfigure locale的问题

#1

帖子 adof » 2006-07-07 2:25

由于GFTP 上的 中文是乱码, 为了这个我就用了locale-gen zh_CN.GBK添加了这个字体,现在GFPT没有乱码了,但是 我的bash上的中文变成乱码了,救命阿。有点得不偿失阿 。。。。。
en_ZA.UTF-8... done
en_ZW.UTF-8... done
zh_CN.GB2312... up-to-date
zh_CN.GBK... up-to-date
zh_CN.UTF-8... up-to-date
zh_HK.UTF-8... done
zh_SG.UTF-8... done
zh_TW.UTF-8... done
Generation complete.
Current default timezone: 'Asia/Shanghai'.
Local time is now: 2006�� 07�� 07�� ������ 02:20:58 CST.
Universal Time is now: 2006�� 07�� 06�� ������ 18:20:58 UTC.

怎么删除我加上去的那个字体阿????????????/
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2006-07-07 12:09

locale-gen zh_CN.UTF-8
cnchun
帖子: 26
注册时间: 2006-07-02 19:39

#3

帖子 cnchun » 2006-07-07 17:56

可以编辑/var/lib/locales/supported.d/zh 添加zh_CN.GBK GBK
root@notebook:~# more /var/lib/locales/supported.d/zh
zh_SG.UTF-8 UTF-8
zh_HK.UTF-8 UTF-8
zh_TW.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GBK GBK

dpkg-reconfigure locales重新产生locale

root@notebook:~# dpkg-reconfigure locales
Generating locales...
de_AT.UTF-8... up-to-date
de_BE.UTF-8... up-to-date
de_CH.UTF-8... up-to-date
de_DE.ISO-8859-15@euro... up-to-date
de_DE.UTF-8... up-to-date
de_LU.UTF-8... up-to-date
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
zh_CN.GBK... done
zh_CN.UTF-8... up-to-date
zh_HK.UTF-8... up-to-date
zh_SG.UTF-8... up-to-date
zh_TW.UTF-8... up-to-date
Generation complete.
Current default timezone: 'Europe/Berlin'.
Local time is now: 2006年 07月 07日 星期五 11:55:36 CEST.
Universal Time is now: 2006年 07月 07日 星期五 09:55:36 UTC.
Run 'tzconfig' if you wish to change it.

ubuntu 的dpkg-reconfigure locales 好象不能跟debian 选择locale 了。
然后在/etc/environment设置默认locale

root@notebook:~# more /etc/environment
LANGUAGE="zh_CN:zh:en_US:en"
LANG="zh_CN.UTF-8"
adof
帖子: 10
注册时间: 2006-06-29 4:49

人气阿,谢谢了

#4

帖子 adof » 2006-07-07 21:19

按照楼上的 一步步做了, 一下就搞定, 谢谢了。
头像
snoopy2556
帖子: 56
注册时间: 2006-06-01 13:20
来自: 山东济南

#5

帖子 snoopy2556 » 2006-07-19 11:10

3楼好强!
qingyue
帖子: 37
注册时间: 2006-07-02 12:42

Re: 人气阿,谢谢了

#6

帖子 qingyue » 2006-07-20 14:17

adof 写了:按照楼上的 一步步做了, 一下就搞定, 谢谢了。
不管用
头像
bzhao
帖子: 250
注册时间: 2008-07-05 2:15
系统: XUbuntu

Re: 又是 dpkg-reconfigure locale的问题

#7

帖子 bzhao » 2012-12-20 13:21

我的目录是这个:/var/lib/locales/supported.d/zh-hans
我的系统是:$lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Bill Z
stat -c %a filename
\_.\{-}
回复