From: Alexander Barton Date: Wed, 8 Apr 2009 11:42:04 +0000 (+0200) Subject: Don't add locale encoding if the current locale is "C" X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ConfigScripts.git;a=commitdiff_plain;h=df933eff02d230a6933dc19b82c90af74eeff633 Don't add locale encoding if the current locale is "C" --- diff --git a/sys/profile b/sys/profile index 8b80cf9..63f96e3 100644 --- a/sys/profile +++ b/sys/profile @@ -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