Traditional Chinese Solaris User's Guide

Using Aliases to Set the Locale

You can use aliases to change locales in a terminal window without typing long commands or editing your .dtlogin file and running source every time.

How to Set Up Locale Aliases for the Korn Shell

    Put aliases such as the following in your .profile file.


    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"

How to Set Up Locale Aliases for the C Shell

    Put aliases like the following in your .cshrc file.


    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"