From 4e45e539e811a1be7be024323c74ec3cccddc007 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 18 Oct 2011 10:15:24 +0200 Subject: DAEMON_LOCALE: support in the same way as locale.sh We don't have the problem with non-bash shells here, but better make the support uniform. --- functions | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions b/functions index 68f4229..938e5f9 100644 --- a/functions +++ b/functions @@ -68,11 +68,13 @@ unset LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \ LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE \ LC_MEASUREMENT LC_IDENTIFICATION LC_ALL if [[ $DAEMON_LOCALE = [yY][eE][sS] ]]; then + LANG="${LOCALE:=C}" if [ -r /etc/locale.conf ]; then . /etc/locale.conf - else - export LANG="${LOCALE}" fi + export LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \ + LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE \ + LC_MEASUREMENT LC_IDENTIFICATION LC_ALL else export LANG=C fi -- cgit v1.2.3