All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] systemd: change default locale from C.UTF-8 to C
@ 2019-04-16  9:49 changqing.li
  2019-04-16  9:49 ` [PATCH 2/2] glibc: Add a C.UTF-8 locale changqing.li
  2019-04-16 10:22 ` [PATCH 1/2] systemd: change default locale from C.UTF-8 to C Richard Purdie
  0 siblings, 2 replies; 8+ messages in thread
From: changqing.li @ 2019-04-16  9:49 UTC (permalink / raw)
  To: openembedded-core

From: Changqing Li <changqing.li@windriver.com>

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 <changqing.li@windriver.com>
---
 meta/recipes-core/systemd/systemd_241.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/systemd/systemd_241.bb b/meta/recipes-core/systemd/systemd_241.bb
index e61e07e..9efd06f 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
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-17  8:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-16  9:49 [PATCH 1/2] systemd: change default locale from C.UTF-8 to C changqing.li
2019-04-16  9:49 ` [PATCH 2/2] glibc: Add a C.UTF-8 locale changqing.li
2019-04-16 13:18   ` Adrian Bunk
2019-04-17  7:39     ` Changqing Li
2019-04-16 10:22 ` [PATCH 1/2] systemd: change default locale from C.UTF-8 to C Richard Purdie
2019-04-16 11:01   ` Enrico Scholz
2019-04-17  1:05   ` Changqing Li
2019-04-17  8:27     ` Andreas Müller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.