From ab5bf122e99353fb359182477cd72df242c8e6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 27 Mar 2019 16:00:22 +0100 Subject: [PATCH] base-files: Found LANG"='C.UTF-8' culprit - drop as note MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- appends/oe-core/base-files/profile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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