File: crxvt

package info (click to toggle)
rxvt 1%3A2.6.4-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,644 kB
  • ctags: 1,457
  • sloc: ansic: 14,118; makefile: 616; sh: 440
file content (14 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# This is a wrapper script that tests the locale and executes the
# appropriate version of rxvt.

if   [ "$LC_ALL"   = "zh_TW.Big5"   ]; then ext=big5
elif [ "$LC_ALL"   = "zh_CN.GB2312" ]; then ext=gb
elif [ "$LC_CTYPE" = "zh_TW.Big5"   ]; then ext=big5
elif [ "$LC_CTYPE" = "zh_CN.GB2312" ]; then ext=gb
elif [ "$LANG"     = "zh_TW.Big5"   ]; then ext=big5
elif [ "$LANG"     = "zh_CN.GB2312" ]; then ext=gb
else ext=big5
fi
exec /usr/bin/crxvt-"$ext" "$@"