aboutsummaryrefslogtreecommitdiff
path: root/locale.sh
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-11-27 23:15:29 -0500
committerDave Reisner <dreisner@archlinux.org>2011-11-27 23:15:29 -0500
commit68c0d213401b6f8173248b69fe0a8459e7758ed8 (patch)
tree884a6bd757edc358920068fe932f8b0a10f47c09 /locale.sh
parented5cc9cb9ba777e2fe0d73a65c66d304f118dffc (diff)
downloadinitscripts-68c0d213401b6f8173248b69fe0a8459e7758ed8.tar.xz
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 <dreisner@archlinux.org>
Diffstat (limited to 'locale.sh')
-rw-r--r--locale.sh2
1 files changed, 2 insertions, 0 deletions
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