i show the setting for my arch. now ,how to set for the fcitx can work
[root@arch locale]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=zh_CN.utf8
LC_CTYPE="zh_CN.utf8"
LC_NUMERIC="zh_CN.utf8"
LC_TIME="zh_CN.utf8"
LC_COLLATE=C
LC_MONETARY="zh_CN.utf8"
LC_MESSAGES="zh_CN.utf8"
LC_PAPER="zh_CN.utf8"
LC_NAME="zh_CN.utf8"
LC_ADDRESS="zh_CN.utf8"
LC_TELEPHONE="zh_CN.utf8"
LC_MEASUREMENT="zh_CN.utf8"
LC_IDENTIFICATION="zh_CN.utf8"
LC_ALL=
/////////////////////////
[root@arch locale]# cat /root/.xinitrc
export LANG=zh_CN.utf8
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=XIM
export XIM=fcitx
export XIM_PROGRAM=fcitx
env LC_CTYPE=zh_CN.uft8 fcitx
fcitx &
exec startkde
////////////////////////////
[root@arch locale]# cat /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
LOCALE="zh_CN.utf8"
LANG="zh_CN.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="China/Shanghai"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USEcolor="yes"
///////////////////////
i make the # away form the "/etc/locale.gen" file and take it run
[root@arch etc]# ./locale.gen
./locale.gen: line 129: en_US.UTF-8: command not found
./locale.gen: line 170: es_US.UTF-8: command not found
./locale.gen: line 171: es_US: command not found
./locale.gen: line 348: zh_CN.GB18030: command not found
./locale.gen: line 349: zh_CN.GBK: command not found
./locale.gen: line 350: zh_CN.UTF-8: command not found
./locale.gen: line 351: zh_CN: command not found
//////////////////////////////
[root@arch fonts]# ls
100dpi 75dpi TTF Type1 cyrillic encodings fonts.cache-1 misc util
///////////////
[root@arch fonts]# cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Tue Aug 1 21:11:12 PDT 2006
Section "Files"
# Additional fonts: Locale, Gimp, TTF...
# FontPath "/usr/share/lib/X11/fonts/latin2/75dpi"
# FontPath "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/local/share/fonts"
EndSection
|