summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-10-18 10:15:24 +0200
committerTom Gundersen <teg@jklm.no>2011-10-18 10:15:24 +0200
commit4e45e539e811a1be7be024323c74ec3cccddc007 (patch)
treef9e6d02f96407f0b3ec87ef5fa0d9c7c90df6446 /functions
parent38ecbbdad78ad58a9c6a6eaaca3af89d81299d6d (diff)
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.
Diffstat (limited to 'functions')
-rw-r--r--functions6
1 files changed, 4 insertions, 2 deletions
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