From df933eff02d230a6933dc19b82c90af74eeff633 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 8 Apr 2009 13:42:04 +0200 Subject: [PATCH] Don't add locale encoding if the current locale is "C" --- sys/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2