[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Rxvt question

On Tue, Jun 29, 1999 at 02:00:19PM -0400, Brian Mays wrote:
|>>>>> "Anthony" == Anthony Wong <hajime@asunaro.dhs.org> writes:
|    Anthony> p.s. Is it better to check the user's current locale
|    Anthony> settings when he/she types 'crxvt'? If the locale is
|    Anthony> zh_TW.Big5, then starts rxvt-big5, if it is zh_CN.GB2312,
|    Anthony> then starts rxvt-gb.
|This is an interesting idea.  If you think that it would be useful, then
|perhaps crxvt should be a wrapper script that tests the locale (how
|should that be done?) and executes the appropriate binary.  Something
|like the following:
|if [ <locale = zh_CN.GB2312> ]; then
|	exec /usr/X11R6/bin/crxvt-gb
|	exec /usr/X11R6/bin/crxvt-big5

How about this wrapper script? Maybe mine is not the best, please
comment if you have any improvements.


ARGS="-im xcin -pt Root"
if [ x$LC_ALL = xzh_TW.Big5 ]; then
elif [ x$LC_ALL = xzh_CN.GB2312 ]; then
elif [ x$LC_CTYPE = xzh_TW.Big5 ]; then
elif [ x$LC_CTYPE = xzh_CN.GB2312 ]; then
elif [ x$LANG = xzh_TW.Big5 ]; then
elif [ x$LANG = xzh_CN.GB2312 ]; then

Anthony Wong.   [ E-mail: hajime@asunaro.dhs.org / ypwong@debian.org ]

Reply to: