LinuxSir.cn,穿越时空的Linuxsir!

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

关于gentoo2005.1输入法及中文显示的问题 [已解决]

[复制链接]
发表于 2005-10-30 22:41:28 | 显示全部楼层 |阅读模式
我是从2005.1的stage3开始安装的,
然后emerge sync
再编译安装必要的软件包。

kernel 2.6.13,
kde 3.4.1

现在有两个问题:

1,部分应用程序中文显示乱码,

如:konsole,kwrite,无法显示中文
当然,konqueror浏览中文网页没问题。



2,fcitx呼不出。

1.8.5版,2.0.1版,3.1.1版都不行
按ctrl+space没反应,

不过在qtconfig里没有任何问题。
我这个帖子就是把汉字输入在qtconfig的“sample text” 的输入框里再粘贴出来的 :-)


那么这样看来fcitx本身的配置应该是正确的,
这两个问题都是由于gentoo哪里没有配置好,造成的,
我也实在想不出哪里还需要配置。

那个发个贴问吧:-)



我的.bashrc:
#export LC_ALL=zh_CN
export LANG=zh_CN.UTF-8
export LC_CTYPE="zh_CN"
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx


我的fstab:
# /etc/fstab: static file system information.
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23:05:14 vapier Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.

# <fs>                        <mountpoint>        <type>                <opts>                <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT                /boot                ext2                noauto,noatime        1 2
/dev/hda1                        /                reiserfs        noatime                0 1
/dev/hda2                        none                swap                sw                                0 0
/dev/hda3                         /mnt/c        vfat                iocharset=cp936,umask=0000 0 0
/dev/hda5                         /mnt/d        vfat                iocharset=cp936,umask=0000 0 0
/dev/cdroms/cdrom0        /mnt/cdrom        iso9660                noauto,ro        0 0
#/dev/fd0                /mnt/floppy        auto                noauto                0 0

# NOTE: The next line is critical for boot!
proc                        /proc                proc                defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                        /dev/shm        tmpfs                nodev,nosuid,noexec        0 0


还有什么其它的配置文件需要贴啦?
发表于 2005-10-31 08:39:19 | 显示全部楼层
我也是从2005.1的stage3开始装的,AMD64,默认locale -a看不到有支持zh_CN的,所以输入法fcitx也不能用,后来在高人指点下,在/etc/locales.ebuild里加入:
zh_CN.UTF-8/UTF-8
zh_CN.GBK/GBK
zh_CN.GB18030/GB18030
zh_CN/GB2312
然后emerge  glibc,就好用了,不过用UTF-8,fcitx不能正常使用,只有用gbk才正常。
回复 支持 反对

使用道具 举报

发表于 2005-10-31 10:43:35 | 显示全部楼层
我的fcitx也不能用
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-31 17:43:34 | 显示全部楼层
多谢inkscape,

你说的那个帖子我也看过,
不过我的有zh_CN支持的阿。

#locale -a
.
.
.
zh_CN
zh_CN.gb18030
zh_CN.gbk
zh_CN.utf8
zh_HK
zh_HK.utf8
zh_SG
zh_SG.gbk
zh_TW
zh_TW.euctw
zh_TW.utf8
zu_ZA
zu_ZA.utf8

不过按你的说法我来重新编译试试看。

再次感谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-1 18:20:24 | 显示全部楼层
我是直接一步编译kdebase-meta的,
我加了USE=“cjk” 和一些其它参数,
所以编译出来的glibc就支持zh_CN的locale。

我在/etc/env.d/下创建一个99local,
内容是:
LC_ALL=zh_CN

现在输入没问题,
中文文件名的显示也没问题了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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