|
发表于 2004-11-17 08:19:56
|
显示全部楼层
It's easy. You can feed certain environment variables to a program without altering the global environment variables. For example, in bash, you can run mrxvt as the following:
$ LC_CTYPE=zh_CN mrxvt &
In csh/tcsh, you can run mrxvt as the following:
$ env LC_CTYPE=zh_CN mrxvt &
Now you see the solution for you. For example, to start scim and mrxvt, you can run commands in shell like the following:
$ LC_ALL=zh_CN LANG=zh_CN scim -d
$ LC_CTYPE=zh_CN mrxvt -km gbk &
The above two commands only set the environment variables LC_ALL, LANG and LC_CTYPE to the scim/mrxvt, but not the variables for your shell. So if you start another application within this shell like usually, they get the environment variable as usually - in your case, en_US.UTF8.
You can setup alias for these commands if you do not want to type the environment variables every time when you start scim/mrxvt. |
|