[PATCH] localedata: Add en_SE for ISO8601 dates

Andreas Schneider asn@cryptomilk.org
Thu Aug 7 08:10:04 GMT 2025


On Wednesday, 6 August 2025 23:33:06 Central European Summer Time Florian 
Weimer wrote:
> * Mike FABIAN:
> > From: Andreas Schneider <asn@cryptomilk.org>
> > 
> > On a Linux system you have two sources for locales: glibc and ICU.
> > 
> > ICU offeres a lot more languages than glibc. Especially when it comes to
> > en_*.
> > 
> > If you have an English system and want to use ISO8601 for date and time
> > format there is only one locale which can be used for that: en_SE
> > 
> > However ICU offers en_SE and glibc doesn't. If you set LC_TIME=en_SE a
> > lot of application wont start, because the locale is not known to glibc.
> > 
> > https://sourceware.org/bugzilla/show_bug.cgi?id=33190
> > 
> > Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
> > 
> > Reviewed-by: Mike FABIAN <mfabian@redhat.com>
> 
> So this is basically en_DK with a different date format?  That's
> rather arbitrary.

en_DK doesn't use ISO 8601 in ICU. It uses 07/08/2025 10.07
Maybe it should be synced with ICU.

> Why DK and SE and not other countries?
>
> > +% date formats following ISO 8601-1988
> > +d_t_fmt  "%Y-%m-%dT%T %Z"
> > +date_fmt "%Y-%m-%dT%T %Z"
> 
> Do people really want the T separator there, or do they prefer spaces?

Looks like it is spaces with ICU.

> And the %Z part is not in ISO 8601?  Wouldn't it have to be
> %Y-%m-%dT%T%:z instead?

%Y-%m-%d %T%:z

-- 
Andreas Schneider                 asn@cryptomilk.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D




More information about the Libc-alpha mailing list