[PATCH v2] localedata: Updates for Taiwanese locales [BZ #24409]

Wei-Lun Chao bluebat@member.fsf.org
Thu May 13 05:10:12 GMT 2021


Hello,

First, alt_digits works like "alt_numbers". I don't know how to just
map each digit to another character.
Before this patch, alt_digits covers 0..31, and this patch covers
0..59. I am not sure, is it worthy to extend
to 0..99, because those presentations are not suitable for year
numbers. For example:
$ LANG=lzh_TW date -d "1959-04-01 09:00:00" +"%Oy<U5E74>"
We will expect <U4E94><U4E5D><U5E74> instead of <U4E94><U5341><U4E5D><U5E74>

Regards,
Wei-Lun CHAO

TAMUKI Shoichi <tamuki@linet.gr.jp> 於 2021年5月11日 週二 下午8:42寫道:
>
> Hello Wei-Lun-san,
>
> From: Wei-Lun Chao via Libc-alpha <libc-alpha@sourceware.org>
> Subject: [PATCH v2] localedata: Updates for Taiwanese locales [BZ #24409]
> Date: Mon, 10 May 2021 11:07:27 +0800
>
> > Changelog:
> > * localedata/locales/cmn_TW: Header cleanup; Remove space (abmon); Add (week); Change (thousands_sep); Simplify (yesexpr) and (noexpr).
> > * localedata/locales/hak_TW: Likewise and add collation.
> > * localedata/locales/nan_TW: Likewise and add collation.
> > * localedata/locales/lzh_TW: Likewise and add collation.
>
> If elements from 0 to 59 are defined for alt_digits in lzh_TW, there
> are the following problems:
>
> $ LANG=lzh_TW date -d "1959-04-01 09:00:00" +"%Oy<U5E74>"
> <U4E94><U5341><U4E5D><U5E74>
> $ LANG=lzh_TW date -d "1960-04-01 09:00:00" +"%Oy<U5E74>"
> 60<U5E74>
>
> Up to 99 elements should be defined for alt_digits.
>
> Regards,
> TAMUKI Shoichi


More information about the Libc-alpha mailing list