From: Changqing Li Date: Tue, 16 Apr 2019 09:49:43 +0000 (+0800) Subject: systemd: change default locale from C.UTF-8 to C X-Git-Tag: uninative-2.5~382 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=48f1521de8d16971e8021d7bf551f0b88f392f43;p=openembedded-core.git systemd: change default locale from C.UTF-8 to C current default locale is set to C.UTF-8, but glibc not support locale C.UTF-8. so set to the default locale C. [snip] if not meson.is_cross_build() choose_default_locale_sh = find_program('tools/choose-default-locale.sh') default_locale = run_command(choose_default_locale_sh).stdout().strip() else default_locale = 'C.UTF-8' endif if default locale set to C.UTF-8, it will cause libpcre ptest fail: re> //8+L ** Failed to set locale "" Signed-off-by: Changqing Li Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd_241.bb b/meta/recipes-core/systemd/systemd_241.bb index 3a58f44a3b..a6deaf96c2 100644 --- a/meta/recipes-core/systemd/systemd_241.bb +++ b/meta/recipes-core/systemd/systemd_241.bb @@ -193,6 +193,7 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \ -Drootlibdir=${rootlibdir} \ -Drootprefix=${rootprefix} \ -Dsysvrcnd-path=${sysconfdir} \ + -Ddefault-locale=C \ " # Hardcode target binary paths to avoid using paths from sysroot