From 68c0d213401b6f8173248b69fe0a8459e7758ed8 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 27 Nov 2011 23:15:29 -0500 Subject: locale.sh: unset LANG before sourcing {locale,rc}.conf If we source locale.sh with a LANG already set and locale.conf doesn't exist, we may never properly set the locale according rc.conf. Signed-off-by: Dave Reisner --- locale.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale.sh') diff --git a/locale.sh b/locale.sh index 4d09f78..fe82378 100644 --- a/locale.sh +++ b/locale.sh @@ -1,3 +1,5 @@ +unset LANG + if [ -s /etc/locale.conf ]; then . /etc/locale.conf fi -- cgit v1.2.3