[PATCH] localedata: Add en_SE for ISO8601 dates
Mike FABIAN
mfabian@redhat.com
Wed Aug 6 16:22:58 GMT 2025
I intend to push this soon.
Mike FABIAN <mfabian@redhat.com> さんはかきました:
> 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>
> ---
> localedata/SUPPORTED | 1 +
> localedata/locales/en_SE | 141 +++++++++++++++++++++++++++++++++++++++
> 2 files changed, 142 insertions(+)
> create mode 100644 localedata/locales/en_SE
>
> diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED
> index 089a5489cb..567ea85580 100644
> --- a/localedata/SUPPORTED
> +++ b/localedata/SUPPORTED
> @@ -153,6 +153,7 @@ en_NZ/ISO-8859-1 \
> en_PH.UTF-8/UTF-8 \
> en_PH/ISO-8859-1 \
> en_SC.UTF-8/UTF-8 \
> +en_SE.UTF-8/UTF-8 \
> en_SG.UTF-8/UTF-8 \
> en_SG/ISO-8859-1 \
> en_US.UTF-8/UTF-8 \
> diff --git a/localedata/locales/en_SE b/localedata/locales/en_SE
> new file mode 100644
> index 0000000000..89d2bd814b
> --- /dev/null
> +++ b/localedata/locales/en_SE
> @@ -0,0 +1,141 @@
> +comment_char %
> +escape_char /
> +
> +% This file is part of the GNU C Library and contains locale data.
> +% The Free Software Foundation does not claim any copyright interest
> +% in the locale data contained in this file. The foregoing does not
> +% affect the license of the GNU C Library as a whole. It does not
> +% exempt you from the conditions of the license if your use would
> +% otherwise be governed by that license.
> +
> +% English language locale for Sweden
> +%
> +% Written according to POSIX.2
> +% ISO/IEC 9945-2:1993 specifications
> +%
> +% Source: Institutet för språk och folkminnen
> +% Address: Box 135, 751 04 Uppsala
> +% Contact: https://www.isof.se/utforska/vagledningar/myndigheternas-skrivregler
> +% Language: en
> +% Territory: SE
> +
> +LC_IDENTIFICATION
> +title "English locale for Sweden"
> +source "Institutet för språk och folkminnen"
> +address "Institutet för språk och folkminnen, Box 135, 751 04 Uppsala"
> +contact "https://www.isof.se/utforska/vagledningar/myndigheternas-skrivregler"
> +email "bug-glibc-locales@gnu.org"
> +tel ""
> +fax ""
> +language "English"
> +territory "Sweden"
> +revision "1.0"
> +date "2025-07-21"
> +
> +category "i18n:2012";LC_IDENTIFICATION
> +category "i18n:2012";LC_CTYPE
> +category "i18n:2012";LC_COLLATE
> +category "i18n:2012";LC_TIME
> +category "i18n:2012";LC_NUMERIC
> +category "i18n:2012";LC_MONETARY
> +category "i18n:2012";LC_MESSAGES
> +category "i18n:2012";LC_PAPER
> +category "i18n:2012";LC_NAME
> +category "i18n:2012";LC_ADDRESS
> +category "i18n:2012";LC_TELEPHONE
> +category "i18n:2012";LC_MEASUREMENT
> +END LC_IDENTIFICATION
> +
> +LC_COLLATE
> +copy "iso14651_t1"
> +END LC_COLLATE
> +
> +LC_CTYPE
> +copy "en_GB"
> +END LC_CTYPE
> +
> +LC_MONETARY
> +copy "sv_SE"
> +END LC_MONETARY
> +
> +LC_NUMERIC
> +copy "sv_SE"
> +END LC_NUMERIC
> +
> +LC_TIME
> +abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
> +day "Sunday";/
> + "Monday";/
> + "Tuesday";/
> + "Wednesday";/
> + "Thursday";/
> + "Friday";/
> + "Saturday"
> +abmon "Jan";"Feb";/
> + "Mar";"Apr";/
> + "May";"Jun";/
> + "Jul";"Aug";/
> + "Sep";"Oct";/
> + "Nov";"Dec"
> +mon "January";/
> + "February";/
> + "March";/
> + "April";/
> + "May";/
> + "June";/
> + "July";/
> + "August";/
> + "September";/
> + "October";/
> + "November";/
> + "December"
> +% date formats following ISO 8601-1988
> +d_t_fmt "%Y-%m-%dT%T %Z"
> +date_fmt "%Y-%m-%dT%T %Z"
> +d_fmt "%Y-%m-%d"
> +t_fmt "%T"
> +am_pm "";""
> +t_fmt_ampm ""
> +week 7;19971130;4
> +first_weekday 2
> +END LC_TIME
> +
> +LC_MESSAGES
> +% + is ised in many applications for yes (- for no)
> +% 1 is common yes, 0 is common no, - langage neutral
> +% Jj is Danish/German/Swedish/Norwegian/Dutch "ja"
> +% yY is English "yes"
> +yesexpr "^[+1yYjJ]"
> +noexpr "^[-0nN]"
> +yesstr "yes"
> +nostr "no"
> +END LC_MESSAGES
> +
> +LC_PAPER
> +copy "sv_SE"
> +END LC_PAPER
> +
> +LC_TELEPHONE
> +copy "sv_SE"
> +END LC_TELEPHONE
> +
> +LC_MEASUREMENT
> +copy "sv_SE"
> +END LC_MEASUREMENT
> +
> +LC_NAME
> +name_fmt "%d%t%g%t%m%t%f"
> +END LC_NAME
> +
> +LC_ADDRESS
> +postal_fmt "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"
> +country_name "Sverige"
> +country_ab2 "SE"
> +country_ab3 "SWE"
> +country_num 752
> +country_car "S"
> +lang_name "English"
> +lang_ab "en"
> +lang_term "eng"
> +lang_lib "eng"
> +END LC_ADDRESS
--
Mike FABIAN <mfabian@redhat.com>
睡眠不足はいい仕事の敵だ。
More information about the Libc-alpha
mailing list