[PATCH] lv_LV locale: fix collation [BZ #15537]

Mike FABIAN mfabian@redhat.com
Mon Nov 20 09:31:00 GMT 2017


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.

-- 
Mike FABIAN <mfabian@redhat.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lv_LV-locale-fix-collation-BZ-15537.patch
Type: text/x-patch
Size: 81382 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171120/550172fb/attachment.bin>


More information about the Libc-alpha mailing list