]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/profile
Don't add locale encoding if the current locale is "C"
[ConfigScripts.git] / sys / profile
index 8b80cf9cc07aa92248e0f17c834b8835d8f87c07..63f96e350e88c170365add8d0d13629137dc5c1e 100644 (file)
@@ -11,7 +11,7 @@ export PROFILEREAD
 
 # Set locale if it is not set or doesn't contain a dot;
 # but all system messages should still be in "native" ("C") language.
-[ "$LANG" = "${LANG#*.}" ] && export LANG="${LANG:-de_DE}.ISO8859-1"
+[ "$LANG" = "${LANG#*.}" -a "$LANG" != "C" ] && export LANG="${LANG:-de_DE}.ISO8859-1"
 export LC_MESSAGES="C"
 
 # Initialize PATH variable