LinuxSir.cn,穿越时空的Linuxsir!

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

用fcitx二笔输入法时遇到的奇怪问题

[复制链接]
发表于 2003-5-23 09:18:35 | 显示全部楼层 |阅读模式
我在面板上添加了一个rxvt的启动器,当用鼠标电击面板上的启动器起动第一个时,不能激活fctix,当在这个rxvt上又启动一个rxvt时却能用fctix了,请问这是怎么回事?我在.xinitrc里面加了
XIM=fcitx
XIM_PROGRAM=fcitx
export XMODIFIERS=@im=fcitx
谢谢。
发表于 2003-5-23 15:15:09 | 显示全部楼层
应该是locale没有设好吧,在.xinitrc文件里再加上
export LANG=zh_CN.gbk
eportt LC_ALL=zh_CN.gbkk
 楼主| 发表于 2003-5-23 15:37:03 | 显示全部楼层
加了过后还是不行,并且奇怪的是在弟二个rxvt用了fctix后,弟一个rxvt终端就不能用了,好象死了一样。
这是在弟一个rxvt下运行locale的结果:
heng@dt:~$ locale
LANG=zh_CN.GBK
LC_CTYPE="zh_CN.GBK"
LC_NUMERIC="zh_CN.GBK"
LC_TIME="zh_CN.GBK"
LC_COLLATE="zh_CN.GBK"
LC_MONETARY="zh_CN.GBK"
LC_MESSAGES="zh_CN.GBK"
LC_PAPER="zh_CN.GBK"
LC_NAME="zh_CN.GBK"
LC_ADDRESS="zh_CN.GBK"
LC_TELEPHONE="zh_CN.GBK"
LC_MEASUREMENT="zh_CN.GBK"
LC_IDENTIFICATION="zh_CN.GBK"
LC_ALL=zh_CN.GBK
发表于 2003-5-23 15:49:55 | 显示全部楼层
在你的字符界面下locale命令的结果是怎样的?
贴出你的~/.bash_profile和~/.bashrc
发表于 2003-5-23 16:01:11 | 显示全部楼层

--

听windrose说他那儿也有这个问题,感觉上可能是RXVT本身事,但RH7.3上带的rxvt很正常
发表于 2003-5-23 16:03:08 | 显示全部楼层

回复: --

最初由 Yuking 发表
听windrose说他那儿也有这个问题,感觉上可能是RXVT本身事,但RH7.3上带的rxvt很正常


我的问题不是rxvt下用不了fcitx,而是fcitx里面切换中英文的快捷键不起作用。
 楼主| 发表于 2003-5-23 17:32:11 | 显示全部楼层
奇怪了,在字符界面下的locale是zh_CN
我的.bashrc是:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If running interactively, then:
if [ "$PS1" ]; then

    # don't put duplicate lines in the history. See bash(1) for more options
    # export HISTCONTROL=ignoredups

    # check the window size after each command and, if necessary,
    # update the values of LINES and COLUMNS.
    #shopt -s checkwinsize

export LANG=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK
export LC_NAME=zh_CN.GBK
export LC_ALL=zh_CN.GBK
XIM=fcitx
#XPROGRAM=fcitx
XIM_PROGRAM=fcitx
export XMODIFIERS=@im=fcitx

    # enable color support of ls and also add handy aliases
    if [ "$TERM" != "dumb" ]; then
        eval `dircolors -b`
        alias ls='ls --color=auto'
        alias dir='ls --color=auto --format=vertical'
        alias vdir='ls --color=auto --format=long'
    fi

    # some more ls aliases
    alias ll='ls -l'
    alias la='ls -A'
    alias l='ls -CF'
    alias rm='rm -i'
    alias mv='mv -i'
    alias cp='cp -i'
    alias man='man -L en_US'

# set a fancy prompt
    PS1='\u@\h:\w\$ '


    # If this is an xterm set the title to user@host:dir
    #case $TERM in
    #xterm*)
    #    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    #    ;;
    #*)
    #    ;;
    #esac

    # enable programmable completion features (you don't need to enable
    # this, if it's already enabled in /etc/bash.bashrc).
    #if [ -f /etc/bash_completion ]; then
    #  . /etc/bash_completion
    #fi
fi
.bash_profile是:

# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

umask 022

# the rest of this file is commented out.

# include .bashrc if it exists

#if [ -f ~/.bashrc ]; then
#    source ~/.bashrc
#fi

# set PATH so it includes user's private bin if it exists
#if [ -d ~/bin ] ; then
#    PATH=~/bin:"${PATH}"
#fi

# do the same with MANPATH
#if [ -d ~/man ]; then
#    MANPATH=~/man:"${MANPATH}"
#fi
发表于 2003-5-23 19:15:20 | 显示全部楼层
#if [ -f ~/.bashrc ]; then
# source ~/.bashrc
#fi
把~/.bash_profile里面这三行前面的#去掉就行了。
 楼主| 发表于 2003-5-24 20:21:04 | 显示全部楼层
问题不仅在.bash_profile这里边,而且我的.bash也不对,我的几个export
应该放在fi后边而不是中间。
发表于 2003-5-24 21:34:33 | 显示全部楼层
那现在好了么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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