diff options
author | Bill Nottingham <notting@redhat.com> | 1999-07-08 19:17:23 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-07-08 19:17:23 +0000 |
commit | 0288c4a15487248839e1f3eb8998f11467fb887d (patch) | |
tree | 6fcf37a521b93ca1d5b2236e39430a070ab75d92 /lang.sh | |
parent | a12da0620f92935481d1e13302aa2986b2245133 (diff) | |
download | initscripts-0288c4a15487248839e1f3eb8998f11467fb887d.tar initscripts-0288c4a15487248839e1f3eb8998f11467fb887d.tar.gz initscripts-0288c4a15487248839e1f3eb8998f11467fb887d.tar.bz2 initscripts-0288c4a15487248839e1f3eb8998f11467fb887d.tar.xz initscripts-0288c4a15487248839e1f3eb8998f11467fb887d.zip |
more fixes for i18n from nkbj@image.dk, move inputrc to setup package
Diffstat (limited to 'lang.sh')
-rwxr-xr-x | lang.sh | 27 |
1 files changed, 4 insertions, 23 deletions
@@ -12,38 +12,19 @@ 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 - - # deprecated - if [ -n "$SYSTERM" ]; then - export TERM=$SYSTERM - fi + [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET if [ -n "$SYSFONTACM" ]; then - case $SYSFONTACM in - iso01*|iso02*|iso15*|koi*) - LESSCHARSET=latin1 - export LESSCHARSET INPUTRC + case $SYSFONTACM in + iso01*|iso02*|iso15*|koi*) 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 + 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 |