Fix: Erase all forgotten stuff from grml-config-user [Closes: issue1272]
[grml-scripts.git] / usr_sbin / grml-setlang
index e4c8293..ae6a096 100755 (executable)
@@ -170,19 +170,17 @@ fi
 # locale isn't available on a remote system
 if echo $LANGUAGE | grep -q -- '-iso' ; then
    LC_CTYPE=C
-else
-   LC_CTYPE=en_US.UTF-8
 fi
 
 # read in the file where all the $LANGUAGE stuff is defined
-  source $LANGFUNC
+  . $LANGFUNC
 
 # make sure the file exists
 if ! [ -r $CONFFILE ] ; then
 cat > $CONFFILE <<EOF
 # File generated by $PN on $(date)
 LANG=$LANG
-LC_CTYPE=$LC_CTYPE
+LC_CTYPE=$LC_CTYPE
 # LANGUAGE=$LANGUAGE
 # TZ=$TZ
 # other environment variables you might want to set:
@@ -197,7 +195,6 @@ EOF
 fi
 
 setvalue 'LANG='     $LANG
-setvalue 'LC_CTYPE=' $LC_CTYPE
 
 retval=$?
 case $retval in