[问题] Locale error, fcitx can not work rightly.help me......

XFCE和LXDE桌面环境
回复
kingxkm
帖子: 7
注册时间: 2006-06-07 13:36
送出感谢: 0
接收感谢: 0

[问题] Locale error, fcitx can not work rightly.help me......

#1

帖子 kingxkm » 2006-06-07 13:49

System :9.10ubuntn
installation type: server+x-windows-system-core + xfce+fcitx
problem: I can't use fcitx .

代码: 全选

root@myubuntu# cat /etc/environment
LANGUAGE="en_US:en"
LC_CTYPE=zh_CN.UTF-8
GST_ID3_TAG_ENCODING=GBK
LANG=en_HK.UTF-8
root@myubuntu#

root@myubuntu# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LC_CTYPE = "zh_CN:UTF-8",
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
  en_US.UTF-8... done
  en_GB.UTF-8... done
  zh_CN.UTF-8... done
  en_HK.UTF-8... done
  zh_CN.GBK... done
Generation complete.
root@myubuntu:~/MyDownloads# cat /etc/environment
LANGUAGE="en_US:en"
LC_CTYPE=zh_CN.UTF-8
GST_ID3_TAG_ENCODING=GBK

LANG=en_HK.UTF-8
root@myubuntu#
[/quote]
头像
jaguar00
帖子: 227
注册时间: 2005-10-19 23:48
来自: 大山丛林
送出感谢: 0
接收感谢: 0

#2

帖子 jaguar00 » 2006-06-07 19:55

什么乱七八糟的东东啊?
要在xfce中用fcitx;

1.按照wiki中新手指南把中文支持装上;这个时候会安装scim,不用管它,安装就是了;然后完毕后用im-swith -s fcitx把默认的输入法改正为fcitx。你也可以在synapic中把scim删除调,这会先提示有broken包,那么先删除broken包然后就可以删除scim了。不过会同样卸载掉一些中文支持。当然卸载之后我在英文系统中也可以输入中文等同样很好。为了防止不明情况发生,还是最好不动scim就好了;

2.在/etc/enviroment中输入(你看你少了什么,就添加什么就是了):
LANG="en_US.UTF-8"
LANGUAGE="en_US:en_GB:en"
LANG="en_US.UTF-8"
LANGUAGE="en_US:en_GB:en"
LC_CTYPE="zh_CN.UTF-8"
XMODIFIERS="@im=fcitx"
这样你就可以在英文界面上使用fcitx了;
图片It is no use doing what you like; you have got to like what you do!
kingxkm
帖子: 7
注册时间: 2006-06-07 13:36
送出感谢: 0
接收感谢: 0

感谢你的回答

#3

帖子 kingxkm » 2006-06-08 11:35

谢谢朋友的回答。
我的系统是 server+xfce4+x-windows-system-core 安装时对于选择英语,没有安装任何中文支持的包(不知道为什么还会显示中文)。系统安装好后,安装过 apt-get install ttf-aphi*

然后是fcitx
不知道是什么原因,昨晚上我安装了几个无关的软件,像 Aduacity,mousepad,mozilla-firefox后,输入法突然出现了,而且正常。现在我的locale为
root@myubuntu:~# cat /etc/environment
LANGUAGE="en_US:en"
LC_CTYPE=zh_CN.UTF-8
LANG="en_US.UTF-8" #这行可以不要,我试过,可以正常输入中文
GST_ID3_TAG_ENCODING=GBK

root@myubuntu:~# locale
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
root@myubuntu:~#

root@myubuntu:/etc/X11/Xsession.d# cat 95xinput
export XMODIFIERS=@im=fcitx ;
export GTK_IM_MODULE="fcitx" ;
fcitx
root@myubuntu:/etc/X11/Xsession.d#

root@myubuntu:# cat /etc/locale.gen
en_US.UTF-8 UTF-8
en_GB.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8

root@myubuntu:#
jaex
帖子: 190
注册时间: 2006-02-14 21:05
送出感谢: 0
接收感谢: 0

#4

帖子 jaex » 2006-06-10 10:16

sudo apt-get install language-pack-zh language-support-zh
就好了
回复

回到 “Xubuntu & Lubuntu”