Just note so it's on the internet. If you see Setlocale : Error 0 in your terminal after logging to into your SGI it's most likely trying to use UTF-8
Rigel:SGUG mgt$ ssh -X saiph
mgt@saiph's password:
Last login: Sat Jul 4 06:13:32 2020
Setlocale : Error 0
Type xterm-256color unknown
xterm-256color not supported changing to xterm
en_US.UTF-8 not supported changing to en_US
In my .bashrc [in Irix] I added 2 tests.. 1 for xterm-256color and a new one for en_US.UTF-8. Below is also a csh version you can drop into your .cshrc as needed.
######BASH VERSION
#Change OSX term
if [ $TERM == "xterm-256color" ]; then
echo "xterm-256color not supported changing to xterm"
export TERM=xterm
fi
#LANG
if [ $LANG == "en_US.UTF-8" ]; then
echo "$LANG not supported changing to en_US"
export LANG=en_US
fi
########CSH VERSION
#Change OSX term
if ( $TERM == "xterm-256color" ) then
echo "xterm-256color not supported changing to xterm"
setenv TERM xterm
endif
#LANG
if ( $LANG == "en_US.UTF-8" ) then
echo "$LANG not supported changing to en_US"
setenv LANG en_US
endif
Obviously you can use whatever LANG support you normally use. Check your locale from your keyboard on the SGI to see it, and then use that.
[mgt@saiph ~]$ locale
LANG=en_US
LC_COLLATE="en_US"
LC_CTYPE="en_US"
LC_MONETARY="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_MESSAGES="en_US"
LC_ALL=
-Mike
Rigel:SGUG mgt$ ssh -X saiph
mgt@saiph's password:
Last login: Sat Jul 4 06:13:32 2020
Setlocale : Error 0
Type xterm-256color unknown
xterm-256color not supported changing to xterm
en_US.UTF-8 not supported changing to en_US
In my .bashrc [in Irix] I added 2 tests.. 1 for xterm-256color and a new one for en_US.UTF-8. Below is also a csh version you can drop into your .cshrc as needed.
######BASH VERSION
#Change OSX term
if [ $TERM == "xterm-256color" ]; then
echo "xterm-256color not supported changing to xterm"
export TERM=xterm
fi
#LANG
if [ $LANG == "en_US.UTF-8" ]; then
echo "$LANG not supported changing to en_US"
export LANG=en_US
fi
########CSH VERSION
#Change OSX term
if ( $TERM == "xterm-256color" ) then
echo "xterm-256color not supported changing to xterm"
setenv TERM xterm
endif
#LANG
if ( $LANG == "en_US.UTF-8" ) then
echo "$LANG not supported changing to en_US"
setenv LANG en_US
endif
Obviously you can use whatever LANG support you normally use. Check your locale from your keyboard on the SGI to see it, and then use that.
[mgt@saiph ~]$ locale
LANG=en_US
LC_COLLATE="en_US"
LC_CTYPE="en_US"
LC_MONETARY="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_MESSAGES="en_US"
LC_ALL=
-Mike
Last edited: