LinuxSir.cn,穿越时空的Linuxsir!

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

FC4下突然不能输入中文了[解决]

[复制链接]
发表于 2005-11-3 18:54:28 | 显示全部楼层 |阅读模式
今天早上上着网的时候突然出现不能输入中文,以为是SCIM被破坏了,于是卸载了以前的SCIM,然后重新yum install scim scim-devel,然后又去下载了scim-fcitx编译安装,安装后重启五笔输入法能调出,但怎么输入都是英文,有时切换或重新打开一个窗口后突然能输入1-2个字,再输入又是英文了。搜索了一下有关此问题的贴子,但最终还未解决。抓图上来大家看一下,大家有没有遇到这种情况?
[root@zibo-AMD64]#locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
[root@zibo-AMD64 xinput.d]# ls
bn_IN  hi_IN  kn_IN  ml_IN  pa_IN  ta_IN  th_TH      zh_CN
gu_IN  ja_JP  ko_KR  ne_NE  scim   te_IN  xinput.sh  zh_TW
[root@zibo-AMD64 xinput.d]# cat xinput.sh
#!/bin/bash
# Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This
# copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the
# GNU General Public License version 2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# X Input method setup script

# Load up the user and system locale settings
oldterm=$TERM
unset TERM
if [ -r /etc/profile.d/lang.sh ]; then
  . /etc/profile.d/lang.sh
fi
[ -n "$oldterm" ] && export TERM=$oldterm

tmplang=${LC_CTYPE:-${LANG:-"zh_CN.UTF-8"}}

## try to source ~/.xinput.d/ll_CC or /etc/X11/xinit/xinput.d/ll_CC to
## setup the input method for locale (CC is needed for Chinese for example)
# unset env vars to be safe
unset XIM XIM_PROGRAM XIM_ARGS XMODIFIERS GTK_IM_MODULE QT_IM_MODULE
lang_region=$(echo $tmplang | sed -e 's/\..*//')
for f in $HOME/.xinput.d/${lang_region} \
            $HOME/.xinput.d/default \
            /etc/X11/xinit/xinput.d/${lang_region} \
            /etc/X11/xinit/xinput.d/default ; do
    [ -r $f ] && source $f && break
done
unset lang_region

[ -n "$GTK_IM_MODULE" ] && export GTK_IM_MODULE
[ -n "$QT_IM_MODULE" ] && export QT_IM_MODULE

# setup XMODIFIERS
[ -z "$XMODIFIERS" -a -n "$XIM" ] && XMODIFIERS="@im=$XIM"
[ -n "$XMODIFIERS" ] && export XMODIFIERS

# execute XIM_PROGRAM
[ -n "$XIM_PROGRAM" ] && which "$XIM_PROGRAM" > /dev/null 2>&1 && LANG="$tmplang" "$XIM_PROGRAM" $XIM_ARGS &
[root@zibo-AMD64 xinput.d]#

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2005-11-4 08:44:18 | 显示全部楼层
:confused:  :confused:  :confused:  :confused:
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-4 09:03:37 | 显示全部楼层
已经解决,不再使用SCIM了,直接安装了FCITX。OK了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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