* [Buildroot] [PATCH 1/1] system: generate and set C.UTF-8 locale by default
@ 2022-05-17 19:24 James Hilliard
2022-05-18 18:27 ` Arnout Vandecappelle
2022-07-26 21:41 ` Thomas Petazzoni via buildroot
0 siblings, 2 replies; 4+ messages in thread
From: James Hilliard @ 2022-05-17 19:24 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard
Now that glibc/localedef supports the C.UTF-8 locale we should default
to it as software like systemd generally expects it to be the locale
used.
This should in general reduce the amount of locale related
compatibility issues and is what many distros have been using for
their default locale for quite a few years so it should be a well
tested configuration.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
system/Config.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/system/Config.in b/system/Config.in
index 888c24ce81..7cc529d31e 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -440,7 +440,7 @@ config BR2_ENABLE_LOCALE_PURGE
config BR2_ENABLE_LOCALE_WHITELIST
string "Locales to keep"
- default "C en_US"
+ default "C.UTF-8"
depends on BR2_ENABLE_LOCALE_PURGE
help
Whitespace seperated list of locales to allow on target.
@@ -455,7 +455,7 @@ config BR2_ENABLE_LOCALE_WHITELIST
config BR2_GENERATE_LOCALE
string "Generate locale data"
- default ""
+ default "C.UTF-8"
depends on \
(BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
BR2_TOOLCHAIN_USES_GLIBC
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] system: generate and set C.UTF-8 locale by default
2022-05-17 19:24 [Buildroot] [PATCH 1/1] system: generate and set C.UTF-8 locale by default James Hilliard
@ 2022-05-18 18:27 ` Arnout Vandecappelle
2022-05-18 23:15 ` James Hilliard
2022-07-26 21:41 ` Thomas Petazzoni via buildroot
1 sibling, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2022-05-18 18:27 UTC (permalink / raw)
To: James Hilliard, buildroot
On 17/05/2022 21:24, James Hilliard wrote:
> Now that glibc/localedef supports the C.UTF-8 locale we should default
> to it as software like systemd generally expects it to be the locale
> used.
>
> This should in general reduce the amount of locale related
> compatibility issues and is what many distros have been using for
> their default locale for quite a few years so it should be a well
> tested configuration.
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> system/Config.in | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/system/Config.in b/system/Config.in
> index 888c24ce81..7cc529d31e 100644
> --- a/system/Config.in
> +++ b/system/Config.in
> @@ -440,7 +440,7 @@ config BR2_ENABLE_LOCALE_PURGE
>
> config BR2_ENABLE_LOCALE_WHITELIST
> string "Locales to keep"
> - default "C en_US"
> + default "C.UTF-8"
> depends on BR2_ENABLE_LOCALE_PURGE
> help
> Whitespace seperated list of locales to allow on target.
> @@ -455,7 +455,7 @@ config BR2_ENABLE_LOCALE_WHITELIST
>
> config BR2_GENERATE_LOCALE
> string "Generate locale data"
> - default ""
> + default "C.UTF-8"
> depends on \
> (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
Is this locale also supported by uClibc?
Regards,
Arnout
> BR2_TOOLCHAIN_USES_GLIBC
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] system: generate and set C.UTF-8 locale by default
2022-05-18 18:27 ` Arnout Vandecappelle
@ 2022-05-18 23:15 ` James Hilliard
0 siblings, 0 replies; 4+ messages in thread
From: James Hilliard @ 2022-05-18 23:15 UTC (permalink / raw)
To: Arnout Vandecappelle; +Cc: buildroot
On Wed, May 18, 2022 at 12:27 PM Arnout Vandecappelle <arnout@mind.be> wrote:
>
>
>
> On 17/05/2022 21:24, James Hilliard wrote:
> > Now that glibc/localedef supports the C.UTF-8 locale we should default
> > to it as software like systemd generally expects it to be the locale
> > used.
> >
> > This should in general reduce the amount of locale related
> > compatibility issues and is what many distros have been using for
> > their default locale for quite a few years so it should be a well
> > tested configuration.
> >
> > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> > ---
> > system/Config.in | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/system/Config.in b/system/Config.in
> > index 888c24ce81..7cc529d31e 100644
> > --- a/system/Config.in
> > +++ b/system/Config.in
> > @@ -440,7 +440,7 @@ config BR2_ENABLE_LOCALE_PURGE
> >
> > config BR2_ENABLE_LOCALE_WHITELIST
> > string "Locales to keep"
> > - default "C en_US"
> > + default "C.UTF-8"
> > depends on BR2_ENABLE_LOCALE_PURGE
> > help
> > Whitespace seperated list of locales to allow on target.
> > @@ -455,7 +455,7 @@ config BR2_ENABLE_LOCALE_WHITELIST
> >
> > config BR2_GENERATE_LOCALE
> > string "Generate locale data"
> > - default ""
> > + default "C.UTF-8"
> > depends on \
> > (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
>
> Is this locale also supported by uClibc?
Looks like there's issues there, I had assumed it was using
host-localedef but I guess
that's not the case, although wondering if it's possible as uclibc
locale support seems
pretty bad.
Also wondering if the musl locale handling is ok for BR2_ENABLE_LOCALE_WHITELIST
as I thought musl just used a built-in C.UTF-8 locale.
>
> Regards,
> Arnout
>
> > BR2_TOOLCHAIN_USES_GLIBC
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] system: generate and set C.UTF-8 locale by default
2022-05-17 19:24 [Buildroot] [PATCH 1/1] system: generate and set C.UTF-8 locale by default James Hilliard
2022-05-18 18:27 ` Arnout Vandecappelle
@ 2022-07-26 21:41 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-26 21:41 UTC (permalink / raw)
To: James Hilliard; +Cc: buildroot
Hello James,
On Tue, 17 May 2022 13:24:39 -0600
James Hilliard <james.hilliard1@gmail.com> wrote:
> Now that glibc/localedef supports the C.UTF-8 locale we should default
> to it as software like systemd generally expects it to be the locale
> used.
>
> This should in general reduce the amount of locale related
> compatibility issues and is what many distros have been using for
> their default locale for quite a few years so it should be a well
> tested configuration.
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> system/Config.in | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Based on the feedback you have received, it appears that this patch
needs to be revisited to make sure it makes sense and works not just
for glibc, but also for uclibc and musl. Could you have a look at this?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-07-26 21:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-17 19:24 [Buildroot] [PATCH 1/1] system: generate and set C.UTF-8 locale by default James Hilliard
2022-05-18 18:27 ` Arnout Vandecappelle
2022-05-18 23:15 ` James Hilliard
2022-07-26 21:41 ` Thomas Petazzoni via buildroot
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.