LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: frenzy

Slow X when setting locale to zh_CN.GBK

[复制链接]
发表于 2003-11-17 16:29:06 | 显示全部楼层
set your locale repectively, not as root, see what will happen.
 楼主| 发表于 2003-11-17 22:26:14 | 显示全部楼层
搞定了 现在在用mozilla,scim写贴。
是因为X font 的原因。具体如下:

Solving the slow startx under zh_CN.GBK problem
-----------------------------------------------
Retried to run startx under LC_CTYPE=zh_CN.GB2312, and it took only 6 - 7 second
s. I suspect it is because there is no font for GBK codeset (inspired by a docum
ent in LinuxSir.org that explains details of fonts.dir file). Looking at fonts.d
ir file and fonts.scale files under the directory where my simsun.ttc resides (/
usr/X11R6/lib/fonts/local/) shows indeed there is no font defined for gbk. So du
plicated the line:
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
and changed it to:
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gbk-0

Did the same thing for fonts.scale (guess it is necessary). Updated first line o
f both file to indicate the correct number of fonts listed below.

After that run startx again. After about 7 seconds I am in fluxbox!

我觉得另外一些问题也是因为这个。比如XMMS的中文显示。没加gbk之前不能显示。加了后再试就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表