LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: MichaelBibby

伤脑筋,fcitx还是搞不定----牢骚帖

[复制链接]
 楼主| 发表于 2004-5-2 10:35:26 | 显示全部楼层
最初由 cobrawgl 发表
% local

local ? or locale ?:p
发表于 2004-5-2 10:39:50 | 显示全部楼层
最初由 MichaelBibby 发表
local ? or locale ?:p


不好意思,哈:p
发表于 2004-5-2 10:40:00 | 显示全部楼层
最初由 MichaelBibby 发表
local ? or locale ?:p


不好意思,哈:p
 楼主| 发表于 2004-5-2 10:46:28 | 显示全部楼层
Something wrong ?:confused:

My locale:

bash-2.05b$ emacs
Warning: locale not supported by C library, locale unchanged
^C
bash-2.05b$ locale
LANG=zh_CN.EUC
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=zh_CN.EUC
bash-2.05b$
发表于 2004-5-2 10:50:58 | 显示全部楼层
最初由 MichaelBibby 发表
Something wrong ?:confused:

My locale:

bash-2.05b$ emacs
Warning: locale not supported by C library, locale unchanged
^C
bash-2.05b$ locale
LANG=zh_CN.EUC
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=zh_CN.EUC
bash-2.05b$



当然错了,你用的是 bash啊,我用的是 csh
我这么设的:

setenv  LANG zh_CN.eucCN
setenv  LC_ALL zh_CN.eucCN
setenv  XMODIFIERS @im=fcitx
 楼主| 发表于 2004-5-2 10:53:02 | 显示全部楼层
How can i do ?
Thanks !
发表于 2004-5-2 11:08:14 | 显示全部楼层
你好象得用 export 吧

export LANG = zh_CN.eucCN
export LC_ALL = zh_CN.eucCN
export XMODIFIERS = @im = fcitx

你试试看看
 楼主| 发表于 2004-5-2 11:11:57 | 显示全部楼层
add them in .cshrc ?

Is it right ?My .cshrc :

# $FreeBSD: src/etc/root/dot.cshrc,v 1.28 2001/01/10 02:37:16 archie Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#

alias h                history 25
alias j                jobs -l
alias la        ls -a
alias lf        ls -FA
alias ll        ls -lA

# A righteous umask
umask 22

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin)

#add by root

LC_ALL=zh_CN.EUC
LANG=zh_CN.EUC
export LC_ALL LANG
export XMODIFIERS=@im=fcitx

#end add by root

setenv        EDITOR        vi
setenv        PAGER        more
setenv        BLOCKSIZE        K

if ($?prompt) then
        # An interactive shell -- set some stuff up
        set prompt = "`hostname -s`# "
        set filec
        set history = 100
        set savehist = 100
        set mail = (/var/mail/$USER)
        if ( $?tcsh ) then
                bindkey "^W" backward-delete-word
                bindkey -k up history-search-backward
                bindkey -k down history-search-forward
        endif
endif

发表于 2004-5-2 11:20:54 | 显示全部楼层
错啦,你要是加到 .cshrc 中就直接用

setenv ,不要用 export.

你要是用 .bashrc 才用 export 的.

我的 .cshrc

# $FreeBSD: src/share/skel/dot.cshrc,v 1.13 2001/01/10 17:35:28 archie Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#

alias h                history 25
alias j                jobs -l
alias la        ls -a
alias lf        ls -FA
alias ll        ls -lA

# A righteous umask
umask 22

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin)

setenv        EDITOR        vi
setenv        PAGER        more
setenv        BLOCKSIZE        K

setenv  LANG zh_CN.eucCN
setenv  LC_ALL zh_CN.eucCN
setenv  XMODIFIERS @im=fcitx

setenv  JDK_HOME /usr/local/jdk1.4.2

if ($?prompt) then
        # An interactive shell -- set some stuff up
        set prompt = "% "
        set filec
        set history = 100
        set savehist = 100
        set mail = (/var/mail/$USER)
        if ( $?tcsh ) then
                bindkey "^W" backward-delete-word
                bindkey -k up history-search-backward
                bindkey -k down history-search-forward
        endif
endif
 楼主| 发表于 2004-5-2 11:25:18 | 显示全部楼层
Thank you !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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