LinuxSir.cn,穿越时空的Linuxsir!

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

I try many ways ,It still can't make CP936 work!!!!

[复制链接]
发表于 2003-9-23 00:27:50 | 显示全部楼层 |阅读模式
sorry ,I can't type Chinese,below is my question:

1,when compile kernel,already include cp936.
2,I have install simsun font,and the font can work."in XFee86config"
        #Load xtt
        #Load freetype
3,my mount method:

   mount -t vfat /dev/hdb7 /mnt/e -o iocharset=cp936
or mount -t vfat /dev/hdb7 /mnt/e -o iocharset=gb2312

but In the fat partition,it still can't see chinese file?

WHY!!!!!


"#echo $LANG  "list nothing,why???


my profile.env:
# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
# GO INTO /etc/profile NOT /etc/profile.env

export KDEDIRS='/usr'
export INFODIR='/usr/share/info:/usr/X11R6/info'
export INFOPATH='/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info'
export CLASSPATH='/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:.'
export ROOTPATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin'
export CONFIG_PROTECT='/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config'
export MANPATH='/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man'
export PATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/bin'
export LC_NUMERIC='zh_CN'
export KDEDIR='/usr/kde/3.1'
export CC='gcc'
export LC_CTYPE='zh_CN'
export LESSOPEN='|lesspipe.sh %s'
export CVS_RSH='ssh'
export QTDIR='/usr/qt/3'
export LC_PAPER='zh_CN'
export LC_ALL='zh_CN'
export XINITRC='/etc/X11/xinit/xinitrc'
export JDK_HOME='/opt/blackdown-jdk-1.4.1'
export LANG='zh_CN'
export LC_IDENTIFICATION='zh_CN'
export LC_MESSAGES='zh_CN'
export JAVAC='/opt/blackdown-jdk-1.4.1/bin/javac'
export LC_MEASUREMENT='zh_CN'
export LC_COLLATE='zh_CN'
export HOSTNAME='J&J'
export G_BROKEN_FILENAMES='1'
export LC_TELEPHONE='zh_CN'
export QMAKESPEC='linux-g++'
export CXX='g++'
export LC_ADDRESS='zh_CN'
export LESS='-R'
export LC_NAME='zh_CN'
export LC_TIME='zh_CN'
export JAVA_HOME='/opt/blackdown-jdk-1.4.1'
export PAGER='/usr/bin/less'
export LC_MONETARY='zh_CN'


Thanks
发表于 2003-9-23 01:07:09 | 显示全部楼层
把profile.env的内容放到/etc/env.d/100i18n里
然后env-update
source /etc/profile
或者直接source /etc/env.d/100i18n试试?
 楼主| 发表于 2003-9-23 20:18:14 | 显示全部楼层
still can't work

I have intall the kde-i18n-zh_CN,but there is no 100i18n in the /etc/env.d,
According to your method,
when copy the profile.env to /etc/env.d/100i18n,then source /etc/profile,and run locale,still the same
if source /etc/env.d/100i18n,the command "locale"will not
work,say"the command not found".

anyway,thanks your answer.

and still need the solutions!
 楼主| 发表于 2003-9-23 20:40:41 | 显示全部楼层
success!!

just in the command line "export LANG=zh_CN"
it works,but seems next time boot will do this again,
but that is a piece of cake,hehe
发表于 2003-9-23 22:06:07 | 显示全部楼层
100i18n是自己创建的,你也可以叫100local什么的,/etc/env.d/下的东东系统启动会自动加载的,重启一下就有效了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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