diff options
author | Tom Gundersen <teg@jklm.no> | 2011-10-18 10:15:24 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-10-18 10:15:24 +0200 |
commit | 4e45e539e811a1be7be024323c74ec3cccddc007 (patch) | |
tree | f9e6d02f96407f0b3ec87ef5fa0d9c7c90df6446 /functions | |
parent | 38ecbbdad78ad58a9c6a6eaaca3af89d81299d6d (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-- | functions | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |