Another default language rework

* re-add fallback in profile: currently no LANG is set by systemd
* Fix typos in locale.conf

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2019-04-19 13:30:06 +02:00
parent fd2831e6fb
commit 81f899aee6
2 changed files with 8 additions and 3 deletions

View File

@@ -18,6 +18,12 @@ if [ -d /etc/profile.d ]; then
unset i unset i
fi fi
# set locale fallback - all our images contain en_US
if [ -z "$LANG" ]; then
LANG="en_US.utf8"
export LANG
fi
# `ls' enhancements: # `ls' enhancements:
export LS_OPTIONS='--color=auto' export LS_OPTIONS='--color=auto'
eval `dircolors` eval `dircolors`

View File

@@ -8,7 +8,7 @@
# [1] https://lists.freedesktop.org/archives/systemd-devel/2018-December/041852.html # [1] https://lists.freedesktop.org/archives/systemd-devel/2018-December/041852.html
# [2] http://lists.openembedded.org/pipermail/openembedded-core/2019-April/281327.html # [2] http://lists.openembedded.org/pipermail/openembedded-core/2019-April/281327.html
# #
# Either default so is not a good idea: # Neither default is working properly:
# #
# * german Umlaute cannot be displayed anymore # * german Umlaute cannot be displayed anymore
# * at least menulibre does not start anymore and complains with # * at least menulibre does not start anymore and complains with
@@ -18,5 +18,4 @@
# #
# so set locale default - all our images contain en_US # so set locale default - all our images contain en_US
LANG=en_US.UTF-8 LANG="en_US.UTF-8"