#!/bin/csh
+#
+#
+# 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