國際語言環境指南

儲存 ~/.cshrc 中的設定

假設您已將必要的 STREAMS 模組載入至 kernel 中,為了方便起見,可以將下列指令行儲存至 .cshrc 檔案中 (C shell 範例):

setenv LANG en_US.UTF-8 
if ($?USER != 0 && $?prompt != 0) then
     cat>! /tmp/mystreams$$ << _EOF
     ttcompat
     ldtterm
     u8lat1
     ptem
_EOF
     /bin/strchg -f /tmp/mystreams$$
     /bin/rm -f /tmp/mystreams$$
     /bin/stty cs8 -istrip defeucw
endif

一旦您將這些指令行儲存至 .cshrc檔案中,每次當您使用 STREAMS 模組時就不再需要輸入所有的指令。請注意,第二 _EOF 的起始位置必須位於檔案的第一個欄位。