[arch-projects] [initscripts][PATCH] locale.sh: unset LANG before sourcing {locale, rc}.conf
Dave Reisner
d at falconindy.com
Sun Nov 27 23:16:46 EST 2011
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 at archlinux.org>
---
locale.sh | 2 ++
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
--
1.7.7.4
More information about the arch-projects
mailing list