]> 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 8dd92a54af5c1d8a085b03b7e9ae544687c3d4b2..dbbc52058a6309207c19efb9c694914e4a4c7e4e 100755 (executable)
--- a/lang.csh
+++ b/lang.csh
@@ -1,50 +1,33 @@
 #!/bin/csh
 #
-#      $Id: lang.csh,v 1.3 1999/12/15 18:41:05 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
 #
 
 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
-
-#    # Set console font map.
-#    if ($?UNIMAP) then
-#      loadunimap $UNIMAP
-#    endif
-
-    if ($?SYSFONTACM) then
-        switch ($SYSFONTACM)
-            case iso01*|iso02*|iso15*|koi*|latin2-ucw*:
-                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
-                    endif
-                endif
-                breaksw
-        endsw
-    endif
-
-    if ($?SYSTERM) then
-       switch ($SYSTERM)
-       case linux-lat:
-               setenv LESSCHARSET=latin1
-               setenv INPUTRC=/etc/inputrc
-               breaksw
-       endsw
-    endif
+       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.053031 seconds and 4 git commands to generate.