aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-08 17:13:20 +0000
committerBill Nottingham <notting@redhat.com>1999-07-08 17:13:20 +0000
commita12da0620f92935481d1e13302aa2986b2245133 (patch)
tree51ff08392c035b9326fd3f1dd31cd12cf567cd15
parent0aeb63ad9b5462be2d7a868e8c76135ea8336203 (diff)
downloadinitscripts-a12da0620f92935481d1e13302aa2986b2245133.tar
initscripts-a12da0620f92935481d1e13302aa2986b2245133.tar.gz
initscripts-a12da0620f92935481d1e13302aa2986b2245133.tar.bz2
initscripts-a12da0620f92935481d1e13302aa2986b2245133.tar.xz
initscripts-a12da0620f92935481d1e13302aa2986b2245133.zip
revert changes for time being
-rwxr-xr-xlang.sh35
1 files changed, 33 insertions, 2 deletions
diff --git a/lang.sh b/lang.sh
index 8890453c..e85fe9c8 100755
--- a/lang.sh
+++ b/lang.sh
@@ -12,7 +12,38 @@ if [ -f /etc/sysconfig/i18n ]; then
[ -n "$LC_ALL" ] && export LC_ALL || unset LC_ALL
[ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
[ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
- [ -n "$INPUTRC" ] && export INPUTRC || unset INPUTRC
- [ -n "$LESSCHARSET" ] && export LESSCHARSET || unset LESSCHARSET
+
+ # deprecated
+ if [ -n "$SYSTERM" ]; then
+ export TERM=$SYSTERM
+ fi
+
+ if [ -n "$SYSFONTACM" ]; then
+ case $SYSFONTACM in
+ iso01*|iso02*|iso15*|koi*)
+ LESSCHARSET=latin1
+ export LESSCHARSET INPUTRC
+ if [ "$TERM" = "linux" ]; then
+ if ls -l /proc/$$/fd/0 2>/dev/null | grep -- '-> /dev/tty[0-9]*$' >/dev/null 2>&1; then
+ echo -n -e '\033(K' > /proc/$$/fd/0
+ fi
+ fi
+ ;;
+ esac
+ fi
+
+ if [ -n "$INPUTRC" ]; then
+ export INPUTRC
+ fi
+
+ if [ -n "$LESSCHARSET" ]; then
+ export LESSCHARSET
+ elif [ "$TERM" = "linux-lat" ]; then
+ LESSCHARSET=latin1
+ export LESSCHARSET
+ fi
+
[ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET
+
+ unset SYSFONTACM
fi