LinuxSir.cn,穿越时空的Linuxsir!

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

普通用户在Xwindow下与中文似乎有冲突[已基本解决]

[复制链接]
发表于 2006-3-14 12:32:49 | 显示全部楼层 |阅读模式
普通用户在Xwindow下与中文似乎有冲突

系统:
LFS-6.1
XORG-6.8.2
FVWM-2.5.14
RXVT-2.7
XMMS-1.2.10
ROX-2.4
FIREFOX-1.0.6

以上软件rox和firefox能很好地显示中文。
FVWM,RXVT,XMMS使用中文都会使X11退出。

具体情况:
LFS和XORG完全按照官方文档安装,安装后仅在/usr/share/fonts/zh_CN/TrueType/目录下拷贝了一些SimSun,SimHei等windows字体,并在/etc/X11/xorg.conf和/etc/fonts/local.conf增加了一行字体路径。fonts.conf文件没有修改,也没有作其它中文化或美化。

FVWM-2.5.14的编译参数只加了一个路径参数。在.fvwm2rc文件中设置中文字体(如:-misc-SimSun-*-*-*-*-*-*-*-*-*-*-*),如果是root用户则能启动X11进入FVWM,如果是普通用户则会退出,进不了FVWM。

而在XMMS的Font设置菜单中选择SimSun字体,不管是root用户还是现普通用户,都会退出X11。

至于RXVT,编译时如果加了参数--enable-gb编译,则启动rxvt时也发生普通用户会退出X11,root用户不会的情况。

希望各位大侠指点指点,或提示一下,在此先谢谢你!。

出错信息用startx 2>&1 | tee error.log捕获,下面是FVWM,RXVT等的出错信息:


正常情况下:startx 2>&1 | tee normal.log

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/localhost:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.14 i686 [ELF]
Current Operating System: Linux localhost 2.6.14 #1 Thu Mar 9 18:36:34 Local time zone must be set--see zic manua i686
Build Date: 12 February 2006
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 13 21:42:11 2006
(==) Using config file: "/etc/X11/xorg.conf"

Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
[FVWM][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0
[FVWM][parse_colorset]: <<WARNING>> bad colorset pixmap specifier Translucent
Please set XMODIFIERS...
FvwmButtons: Illegal container option ""
[FvwmButtons][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0
[FvwmIconMan][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0



FVWM出错信息:startx 2>&1 | tee fvwmerror.log
(因开始有一大段与正常情况相符,没有给出)

Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!

   *** If unresolved symbols were reported above, they might not
   *** be the reason for the server aborting.

Fatal server error:
Caught signal 11.  Server aborting


Please consult the The X.Org Foundation support
         at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

xinit:  connection to X server lost.



waiting for X server to shut down




XMMS出错信息:startx 2>&1 | tee xmmserror.log
(因开始有一大段与正常情况相符,没有给出)

Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
[FVWM][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0
FvwmButtons: Illegal container option ""
[FvwmButtons][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0
rxvt: can't load font "SimSun"
[FvwmIconMan][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0

   *** If unresolved symbols were reported above, they might not
   *** be the reason for the server aborting.

Fatal server error:
Caught signal 11.  Server aborting


Please consult the The X.Org Foundation support
         at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

X connection to :0.0 broken (explicit kill or server shutdown).

Gdk-ERROR **: X connection to :0.0 broken (explicit kill or server shutdown).
X connection to :0.0 broken (explicit kill or server shutdown).

X connection to :0.0 broken (explicit kill or server shutdown).

xinit:  connection to X server lost.





RXVT出错信息:startx 2>&1 | tee rxvterror.log
(因开始有一大段与正常情况相符,没有给出)

Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
[FVWM][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0
[FVWM][parse_colorset]: <<WARNING>> bad colorset pixmap specifier Translucent
FvwmButtons: Illegal container option ""
[FvwmButtons][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0
[FvwmIconMan][FlocaleGetFontSet]: (-*-arial-medium-r-*-*-14-*-*-*-*-*-*-*) Missing font charsets:
GB2312.1980-0
Please set XMODIFIERS...

   *** If unresolved symbols were reported above, they might not
   *** be the reason for the server aborting.

Fatal server error:
Caught signal 4.  Server aborting


Please consult the The X.Org Foundation support
         at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"

      after 469 requests (460 known processed) with 0 events remaining.

X connection to :0.0 broken (explicit kill or server shutdown).

X connection to :0.0 broken (explicit kill or server shutdown).

xinit:  connection to X server lost.

X connection to :0.0 broken (explicit kill or server shutdown).
发表于 2006-3-14 18:30:23 | 显示全部楼层
那你把中文设置好,试试?
你的gtk的字体是不是没设置好?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-14 23:47:13 | 显示全部楼层
Post by 终极幻想
那你把中文设置好,试试?
你的gtk的字体是不是没设置好?


多谢版主提示,配置了local.conf和gtkrc.zh_CN后,XMMS的问题已解决,rxvt和fvwm还是老样子。
回复 支持 反对

使用道具 举报

发表于 2006-3-14 23:52:28 | 显示全部楼层
rxvt和fvwm 有单独的配置文件.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-19 20:45:49 | 显示全部楼层
感谢版主,感谢楼上的朋友。问题已基本解决:

在/etc/gtk/gtkrc.zh_CN设置了字体后,在XMMS的PlayList中选择了两种字体,播放列表就可以显示中英文:
-misc-simsun-medium-r-normal-*-*-160-*-*-p-*-gb2312.1980-0,-monotype-times new roman-medium-r-normal-*-*-100-*-*-p-*-iso8859-1

再把XMMS中PlayList字体样例直接复制到~/.fvwm/.fvwm2rc中,fvwm再无问题:
SetEnv zh_CN_FONT "-misc-simsun-medium-r-normal-*-*-160-*-*-p-*-gb2312.1980-0"
SetEnv en_US_FONT "-monotype-arial-medium-r-normal-*-*-140-*-*-p-*-iso8859-1"

rxvt看了它的文档,google也查了,还是不能显示中文。也罢,事若求全何所乐,能用就行了。这已经为几个不是很关键的问题浪费了好多时间了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-19 20:48:48 | 显示全部楼层
感谢版主,感谢楼上的朋友。问题已基本解决:

在/etc/gtk/gtkrc.zh_CN设置了字体后,在XMMS的PlayList中选择了两种字体,播放列表就可以显示中英文:
-misc-simsun-medium-r-normal-*-*-160-*-*-p-*-gb2312.1980-0,-monotype-times new roman-medium-r-normal-*-*-100-*-*-p-*-iso8859-1

再把XMMS中PlayList字体样例直接复制到~/.fvwm/.fvwm2rc中,fvwm再无问题:
SetEnv zh_CN_FONT "-misc-simsun-medium-r-normal-*-*-160-*-*-p-*-gb2312.1980-0"
SetEnv en_US_FONT "-monotype-arial-medium-r-normal-*-*-140-*-*-p-*-iso8859-1"

rxvt看了它的文档,google也查了,还是不能显示中文。也罢,事若求全何所乐,能用就行了。这已经为几个不是很关键的问题浪费了好多时间了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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