diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-11-27 23:15:29 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-11-27 23:15:29 -0500 |
commit | 68c0d213401b6f8173248b69fe0a8459e7758ed8 (patch) | |
tree | 884a6bd757edc358920068fe932f8b0a10f47c09 /locale.sh | |
parent | ed5cc9cb9ba777e2fe0d73a65c66d304f118dffc (diff) |
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.sh | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,3 +1,5 @@ +unset LANG + if [ -s /etc/locale.conf ]; then . /etc/locale.conf fi |