D****g 发帖数: 2860 | 1 FreeBSD 4.6, x86,装好了XFree86.中文字体也没有问题.装好了自带的Chinput 2.1
在.cshrc里面也设了locale:
setenv LANG zh_CN.GB2312
setenv LC_ALL zh_CN.GB2312
setenv CHARSET GB2312
setenv XMODIFIERS "@im=Chinput"
locale命令的输出也没有问题:
[*^_^*://braveheart/home/lg]locale
LANG=zh_CN.GB2312
LC_CTYPE="zh_CN.GB2312"
LC_NUMERIC="zh_CN.GB2312"
LC_TIME="zh_CN.GB2312"
LC_COLLATE="zh_CN.GB2312"
LC_MONETARY="zh_CN.GB2312"
LC_MESSAGES="zh_CN.GB2312"
LC_PAPER="zh_CN.GB2312"
LC_NAME="zh_CN.GB2312"
LC_ADDRESS="zh_CN.GB2312"
LC_TELEPHONE="zh_CN.G | xi 发帖数: 1678 | 2 Share my experience with you --
In FreeBSD, I use
setenv LC_CTYPE zh_CN.EUC.
Check your /usr/share/locale first to see whether you have it (it should
be installed in default).
setenv LANG zh_CN.EUC.
now type "date" to see whether it outputs garbage.
if it is, then your environment is correct.
I saw the FreeBSD source of Chinput and it is obvious that the msg
Please first
"export XMODIFIERS=@im=Chinput"
before run this program
always appears whatever your env variables are.
Grab the foll
【在 D****g 的大作中提到】 : FreeBSD 4.6, x86,装好了XFree86.中文字体也没有问题.装好了自带的Chinput 2.1 : 在.cshrc里面也设了locale: : setenv LANG zh_CN.GB2312 : setenv LC_ALL zh_CN.GB2312 : setenv CHARSET GB2312 : setenv XMODIFIERS "@im=Chinput" : locale命令的输出也没有问题: : [*^_^*://braveheart/home/lg]locale : LANG=zh_CN.GB2312 : LC_CTYPE="zh_CN.GB2312"
| D****g 发帖数: 2860 | 3 thanks you very much. I set locale to zh_CN.EUC. The date command outputs
the date format in Chinese. But it seems that X does not support the locale,
Here is the output when I tried to run the program you gave me:
Error : XSupportsLocale() !
I ran rxvt as well, I pressed ctrl+space and nothing happened. I tried
ps -axw | grep chinput
and seems that chinput is not running. I tried to lauch chinput manually,
and it reports:
Please first
"export XMODIFIERS=@im=Chinput"
before run this prog
【在 xi 的大作中提到】 : Share my experience with you -- : In FreeBSD, I use : setenv LC_CTYPE zh_CN.EUC. : Check your /usr/share/locale first to see whether you have it (it should : be installed in default). : setenv LANG zh_CN.EUC. : now type "date" to see whether it outputs garbage. : if it is, then your environment is correct. : I saw the FreeBSD source of Chinput and it is obvious that the msg : Please first
| xi 发帖数: 1678 | 4 I mean first lanch chinput & and test the program I gave you.
launch chinput first, this shouldn't happen.
this looks like resource.
I believe you didn't add the resources. there should be a resource file
like Chinput.ad in the distribution. type
xrdb -load Chinput.ad before you do everything.
I think LC_anythingelse can be omitted as you use LC_ALL
【在 D****g 的大作中提到】 : thanks you very much. I set locale to zh_CN.EUC. The date command outputs : the date format in Chinese. But it seems that X does not support the locale, : Here is the output when I tried to run the program you gave me: : Error : XSupportsLocale() ! : I ran rxvt as well, I pressed ctrl+space and nothing happened. I tried : ps -axw | grep chinput : and seems that chinput is not running. I tried to lauch chinput manually, : and it reports: : Please first : "export XMODIFIERS=@im=Chinput"
|
|