avatar
D*g
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
avatar
xi
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 [email protected]=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"

avatar
D*g
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 [email protected]=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

avatar
xi
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 [email protected]=Chinput"

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。