|
|
发表于 2006-11-17 18:32:34
|
显示全部楼层
1.开机阶段是指没进入X之前。至于中文输出乱码,是否加入unicon,我不是很清楚。但我是按照http://www.gentoo.org/doc/en/utf-8.xml上做的,
在安装gentoo编译内核之前,修改/etc/locale.gen文件。总共设置了英文和中文两种语言:
en_US.UTF-8 UTF-8
zh_CN.GB18030 GB18030
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
zh_CN GB2312
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
#de_DE@euro ISO-8859-15
#es_MX ISO-8859-1
#fa_IR UTF-8
#fr_FR ISO-8859-1
#fr_FR@euro ISO-8859-15
#it_IT ISO-8859-1
并locale-gen,显示locale已经全部安装。
gentoo安装完成后,在 /etc/env.d/02locale 里设置LANG="zh_CN.utf8",并在/etc.make.conf里设置USE:
USE="-dri -ipv6 -arts -cdr -dvdr -kde -oss -qt3 -qt4 -ppds -cups [color="Red"]esd hal gpm cjk unicode gtk gnome hal avahi alsa"
另外,根据网页上的指示,说要The System Console使用UTF8要修改/etc/rc.conf里的UNICODE="yes",照做。不过后面说要有具体的字体支持:[color="Red"]To enable UTF-8 on the console, you should edit /etc/rc.conf and set UNICODE="yes", and also read the comments in that file -- it is important to have a font that has a good range of characters if you plan on making the most of Unicode.。不懂如何在终端下加入中文字体?所以就没做这一步。
用到现在,mount 光驱时候一直是乱码的,直到今天我改动/etc/env.d/02locale里的 LANG="en_US.utf8",才正常显示英文。
2.现在的/etc/env.conf/02locale里只有LANG="zh_CN.utf8"一行(我又改回来了),看了你的回帖,我准备改变为LANGUAGE=“zh_CN.utf8",是否可行,等我重启机器看看。
3.非常感谢你的回帖! |
|