summaryrefslogtreecommitdiff
path: root/libre/filesystem/locale.sh
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-04 23:58:32 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-04 23:58:32 -0300
commitf30169d276cbbfcb6ac253d7e72efe9421401606 (patch)
tree9b637f135f55d41e2b50ad76e174784193c31323 /libre/filesystem/locale.sh
parent7a62e84f435958b9f335e5b7a4f2e89caef7c992 (diff)
filesystem-2014.05-2: updating version
* add systemd-timesync and systemd-journal-gateway users/groups * fix incorrect group in /etc/passwd for systemd-journal-gateway
Diffstat (limited to 'libre/filesystem/locale.sh')
-rw-r--r--libre/filesystem/locale.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/libre/filesystem/locale.sh b/libre/filesystem/locale.sh
index 5fd4174d5..3cfc89c1b 100644
--- a/libre/filesystem/locale.sh
+++ b/libre/filesystem/locale.sh
@@ -9,11 +9,10 @@ elif [ -n $HOME ] && [ -r $HOME/.config/locale.conf ]; then
. "$HOME/.config/locale.conf"
elif [ -r /etc/locale.conf ]; then
. /etc/locale.conf
-elif [ -r /etc/rc.conf ]; then
- LANG=$(. /etc/rc.conf 2>/dev/null; echo "$LOCALE")
fi
-export LANG="${LANG:-C}"
+LANG=${LANG:-C}
+export LANG
[ -n "$LC_CTYPE" ] && export LC_CTYPE
[ -n "$LC_NUMERIC" ] && export LC_NUMERIC
[ -n "$LC_TIME" ] && export LC_TIME