]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Don't add locale encoding if the current locale is "C"
authorAlexander Barton <alex@barton.de>
Wed, 8 Apr 2009 11:42:04 +0000 (13:42 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 8 Apr 2009 11:42:04 +0000 (13:42 +0200)
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