X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=lang.csh;h=dbbc52058a6309207c19efb9c694914e4a4c7e4e;hb=HEAD;hp=010eb9507dfb3b837fd5bbd3c74bd2ecafddc468;hpb=b0443108faa8f1d299c081ebad98214770c052bd;p=projects%2Frc-scripts.git diff --git a/lang.csh b/lang.csh index 010eb950..dbbc5205 100755 --- a/lang.csh +++ b/lang.csh @@ -1,38 +1,33 @@ #!/bin/csh # -# $Id: lang.csh,v 1.2 1999/07/13 12:49:34 misiek Exp $ +# +# FIXME: this file is broken, as you can see it does nothing (does not actually load i18n file) +# TODO: sync with lang.sh # -if [ -f /etc/sysconfig/i18n ]; then - . /etc/sysconfig/i18n - - if [ -n "$LANG" ]; then - setenv LANG - fi - - if [ -n "$LC_ALL" ]; then - setenv LC_ALL - fi - - if [ -n "$LINGUAS" ]; then - setenv LINGUAS - fi - - if [ -n "$SYSTERM" ]; then - setenv TERM=$SYSTERM - fi - - # Set console font map. - if [ -n "$UNIMAP" ]; then - loadunimap $UNIMAP - fi - - if [ -n "$SYSTERM" ] ; then - case $SYSTERM in - linux-lat) - setenv LESSCHARSET=latin1 - setenv INPUTRC=/etc/inputrc - ;; - esac - fi -fi +test -f /etc/sysconfig/i18n +if ($status == 0) then + if ($?LANG) then + setenv LANG + endif + if ($?LC_ALL) then + setenv LC_ALL + endif + if ($?LINGUAS) then + setenv LINGUAS + endif + if ($?SYSTERM) then + setenv TERM=$SYSTERM + endif + if ($?_XKB_CHARSET) then + setenv _XKB_CHARSET + endif + if ($?INPUTRC) then + setenv INPUTRC + endif + if ($?LESSCHARSET) then + setenv LESSCHARSET + else if ($TERM == linux-lat) then + setenv LESSCHARSET latin1 + endif +endif