[PATCH] lv_LV locale: fix collation [BZ #15537]
Carlos O'Donell
carlos@redhat.com
Mon Nov 20 23:41:00 GMT 2017
On 11/20/2017 01:31 AM, Mike FABIAN wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=15537
>
> Order without my patch:
>
> $ LC_ALL=lv_LV.UTF-8 ls
> Æ· a Aa æ Äb c D i Y yb Īb ĵa L Å ra Åa Sa Å¡ T Zb ža
> Ê Êa aa Ä Äb à Ģ Ia y Ī Ä«b Ä´b Ä» O Rb Åa sa Å a Z zb Žb
> È¥ Æ·a Ab Ä Êb ç Ä£ ia Ya Ä« Ä´ ĵb ļ à rb Åb Sb Å¡a z Ž žb
> Ȥ Ã
ab Äa Æ·b Ä H Ib ya Īa ĵ Ķ M ø Å Åb sb Å b Za ž
> A Ã¥ à Äa C Ä I ib Yb Ä«a Ä´a Ä· Å
Ra ŠS Ššb za Ža
> $
>
> Order with my patch:
>
> bash-4.4# LC_ALL=lv_LV.UTF-8 ls
> a Ä ab Ã Ä H y Īa Ä«b Ä´ Ä· M à ŠÅb Sb Å¡b Z zb Ža Êa
> A aa Ab c Ä i Y ya Īb ĵa Ķ Å ra Å S Å¡ Å b È¥ Zb žb Æ·a
> Ã¥ Aa Äb C D I ia Ya yb Ä´a L Å
Ra Åa sa Å t Ȥ ž Žb Êb
> Ã
Äa Äb ç Ä£ Ä« Ia ib Yb ĵb ļ O rb Åa Sa Å¡a T za Ž Ê Æ·b
> Ä Äa æ à Ģ Ī Ä«a Ib ĵ Ä´b Ä» ø Rb Åb sb Å a z Za ža Æ·
> bash-4.4#
>
> So I think this patch fixes the problems reported in the bug
> by using
>
> copy "iso14651_t1"
>
> and then add the same collation tailoring for Latvian as in CLDR
> instead of implementing the whole collation for Latvian from
> scratch as it is currently done in glibc.
Please add a test case which documents the expected ordering.
It is relatively easy to add one of the collation tests with
input data already sorted with comments.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list