Traditional Chinese Solaris User's Guide

Using Aliases to Set Locales

You can use aliases to change a terminal-emulation window between the Traditional Chinese locales and ASCII/English locale from time to time without typing long command lines or editing your .dtlogin file and running source every time.

Setting Up Locale Aliases for the Korn Shell


alias twn_EUC "export LANG=zh_TW; /bin/stty cs8 -istrip defeucw"
alias twn_BIG5 "export LANG=zh_TW.BIG5; /bin/stty cs8 -istrip defeucw"
alias asc "export LANG=C; /bin/stty cs7 istrip defeucw" 
alias twn_UTF-8 "export LANG=zh_TW.UTF-8; /bin/stty cs8 -istrip defeucw"

Setting Up Locale Aliases for the C Shell


alias twn_EUC "setenv LANG zh_TW; /bin/stty cs8 -istrip defeucw"
alias twn_BIG5 "setenv LANG zh_TW.BIG5; /bin/stty cs8 -istrip defeucw"
alias asc "setenv LANG C; /bin/stty cs7 istrip defeucw" 
alias twn_UTF-8 "setenv LANG=zh_TW.UTF-8; /bin/stty cs8 -istrip defeucw"