Simplified Chinese Solaris System Administrator's Guide

Setting .cshrc for the Required Environment

Each user's environment variables and ~/.cshrc (in other words, $HOME/.cshrc) file command lines must be set as described in this section to use Simplified Chinese text. You must make sure the following three .cshrc file features (and consequently the users' C shells) are set correctly before any user starts up the Simplified Chinese OpenWindows environment.

The following three conditions are prerequisites to using Simplified Chinese:

To set these features, make sure each user's .cshrc file includes the following lines:


setenv LANG zh
setenv OPENWINHOME /usr/openwin
 
set path=( /usr/SUNWale/bin $OPENWINHOME/bin $path )
 
...
 
if ($?USER != 0 && $?prompt != 0) then
   /bin/stty cs8 -istrip defeucw
endif

Only /bin/stty can set the required features. Do not use /usr/ucb/stty because it does not set all required features.

Also, make sure each .cshrc file puts $OPENWINHOME/bin in the user's path before any other OpenWindows file. One way to ensure this is to put the following line in after other path assignments:


set path=(/usr/SUNWale/bin $OPENWINHOME/bin $path)