[Bug localedata/4628] Provide rump locales with ISO 8601 variants for use with LC_TIME

asn at samba dot org sourceware-bugzilla@sourceware.org
Wed Jul 16 09:03:08 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=4628

--- Comment #28 from Andreas Schneider <asn at samba dot org> ---
In case someone wonders how to do that.

SUSE: zypper install glibc-i18ndata
Fedora/RHEL: dnf install glibc-locale-source

# This creates a ISO8601 date and 24h time
sed -e 's/^title .*/title      "C ISO8601 locale"/' \
    -e 's/^d_t_fmt .*/d_t_fmt "%a %d %b %Y %T %Z"/' \
    -e 's/^d_fmt .*/d_fmt   "%Y-%m-%d"/' \
    -e 's/^t_fmt .*/t_fmt   "%T"/' \
    -e 's/^t_fmt_ampm .*/t_fmt_ampm   ""/' \
    /usr/share/i18n/locales/C > /usr/share/i18n/locales/C.ISO8601

localedef --charmap=UTF-8 --inputfile=C.ISO8601 /usr/lib/locale/C.ISO8601.utf8/

export LC_TIME=C.ISO8601.UTF-8

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list