]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - lang.csh
Umount remaining filesystems one by one (using -R) option which helps in cases when...
[projects/rc-scripts.git] / lang.csh
index 010eb9507dfb3b837fd5bbd3c74bd2ecafddc468..dbbc52058a6309207c19efb9c694914e4a4c7e4e 100755 (executable)
--- 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
This page took 0.093958 seconds and 4 git commands to generate.