LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 997|回复: 11

问一下x的locale到底怎么设置

[复制链接]
发表于 2005-4-19 19:04:38 | 显示全部楼层 |阅读模式
我用的是xorg X11R6.8.2
LC_ALL社的是zh_CN.GB2312
启动x的时候报错 locale not supported by Xlib
察看/usr/X11R6/lib/X11/locale/下 没有zh_CN.GB2312这个目录
后来我自己修改locale.dir 加了一句zh_CN/XLC_LOCALE zh_CN.GB2312
启动还是 locale not supported by Xlib

后来把zh_CN.GB2312 全改称 zh_TW.Big5
x显示全部正常。。。。

谁能告诉我问题出在什么地方?xorg到底支不支持gb2312?
发表于 2005-4-19 19:46:52 | 显示全部楼层
你编译glibc的时候选择了所有的locale吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-19 20:48:39 | 显示全部楼层
Post by JBug
你编译glibc的时候选择了所有的locale吗?

所有的
回复 支持 反对

使用道具 举报

发表于 2005-4-19 22:27:16 | 显示全部楼层
你把你的host.def贴出来看看. LFS对中文的支持很不好, 我装的fluxbox在中文下启动出错.
回复 支持 反对

使用道具 举报

发表于 2005-4-19 22:31:38 | 显示全部楼层
你把你的host.def贴出来看看. LFS对中文的支持很不好, 我装的fluxbox在中文locale下启动出错. 但是在gentoo下很好用.
回复 支持 反对

使用道具 举报

发表于 2005-4-20 18:53:07 | 显示全部楼层
我的lfs + xorg6.8.2 的xcore方式也对GB2312支持不好。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-20 22:51:00 | 显示全部楼层
我用的就是blfs最原始的host.def  一个字都没改过亚
[PHP]
/* Begin Xorg host.def file */

/* System Related Information.  If you read and configure only one
* section then it should be this one.  The Intel architecture defaults
* are set for a i686 and higher.  Axp is for the Alpha architecture
* and Ppc is for the Power PC.  AMD64 is for the Opteron processor.
* Note that there have been reports that the Ppc optimization line
* causes segmentation faults during build.  If that happens, try
* building without the DefaultGcc2PpcOpt line.  ***********/

/* #define DefaultGcc2i386Opt -O2 -fno-strength-reduce \
                              -fno-strict-aliasing -march=i686 */
/* #define DefaultGccAMD64Opt -O2 -fno-strength-reduce \
                              -fno-strict-aliasing */
/* #define DefaultGcc2AxpOpt  -O2 -mcpu=ev6 */
/* #define DefaultGcc2PpcOpt  -O2 -mcpu=750 */

#define HasFreetype2            YES
#define HasFontconfig           YES
#define HasExpat                YES
#define HasLibpng               YES
#define HasZlib                 YES

/*
* Which drivers to build.  When building a static server, each of
* these will be included in it.  When building the loadable server
* each of these modules will be built.
*
#define XF86CardDrivers         mga glint nv tga s3virge sis rendition \
                                neomagic i740 tdfx savage \
                                cirrus vmware tseng trident chips apm \
                                GlideDriver fbdev i128 \
                                ati AgpGartDrivers DevelDrivers ark \
                                cyrix siliconmotion vesa vga \
                                XF86OSCardDrivers XF86ExtraCardDrivers
*/

/*
* Select the XInput devices you want by uncommenting this.
*
#define XInputDrivers           mouse keyboard acecad calcomp citron \
                                digitaledge dmc dynapro elographics \
                                microtouch mutouch penmount spaceorb \
                                summa wacom void magictouch aiptek
*/

/* Most installs will only need this */

#define XInputDrivers           mouse keyboard

/* Disable building Xprint server and clients until we get them figured
* out but build Xprint libraries to allow precompiled binaries such as
* Acrobat Reader to run.
*/

#define XprtServer              NO
#define BuildXprintClients      NO

/* End Xorg host.def file */
[/PHP]
回复 支持 反对

使用道具 举报

发表于 2005-4-24 11:27:29 | 显示全部楼层
你有simsun的字体吗,font.dir下有gb2312的项吗.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-25 21:53:24 | 显示全部楼层
Post by duanxiangqaz
你有simsun的字体吗,font.dir下有gb2312的项吗.

有的
。。。我放弃了。。。用utf8算了。。。只要能用输入法就可以了
回复 支持 反对

使用道具 举报

发表于 2005-4-26 11:22:26 | 显示全部楼层
LFS对中文的支持我觉得很好啊,效果比我用的SLK好。
看看相关汉化帖子吧,应该能成功。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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