diff --git a/appends/oe-core/base-files/profile b/appends/oe-core/base-files/profile index 4d2d78f..6151e7b 100644 --- a/appends/oe-core/base-files/profile +++ b/appends/oe-core/base-files/profile @@ -18,16 +18,21 @@ if [ -d /etc/profile.d ]; then unset i fi -# Note on LANG: On the way thud -> warrior something started to set -# LANG="C.UTF-8". Could not find which package to blame but it is not a good -# idea: +# Note on LANG: Since systemd 240 LANG="C.UTF-8" is set if no /etc/locale.conf +# is found and mentions that 'This locale is supported by various +# distributions' and 'upstream glibc is going to make it available too' [1]. +# +# [1] https://lists.freedesktop.org/archives/systemd-devel/2018-December/041852.html +# +# Doing so is not a good idea: +# # * german Umlaute cannot be displayed anymore # * at least menulibre does not start anymore and complains with # | File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 390, in configure_application_actions # | label=_('Add _Launcher���'), # | UnicodeDecodeError: 'locale' codec can't decode byte 0xe2 in position 13: decoding error # -# locale fallback for UTF8 +# so set locale fallback - all our images contain en_US if [ -z "$LANG" -o "$LANG"='C.UTF-8' ]; then LANG="en_US.utf8" export LANG