[arch-projects] [initscripts][PATCH] locale.sh: unset LANG before sourcing {locale, rc}.conf
28 Nov
2011
28 Nov
'11
4:16 a.m.
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> --- 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
4738
Age (days ago)
4738
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dave Reisner