public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
* [Bug localedata/14010] New: Serious omissions in alphabetic character class
@ 2012-04-23  4:22 bugdal at aerifal dot cx
  2012-09-21 23:46 ` [Bug localedata/14010] " bugdal at aerifal dot cx
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bugdal at aerifal dot cx @ 2012-04-23  4:22 UTC (permalink / raw)
  To: libc-locales

http://sourceware.org/bugzilla/show_bug.cgi?id=14010

             Bug #: 14010
           Summary: Serious omissions in alphabetic character class
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: unassigned@sourceware.org
        ReportedBy: bugdal@aerifal.cx
                CC: libc-locales@sources.redhat.com
    Classification: Unclassified


The localedata generation code defines is_alpha based on Unicode categories L*,
plus Nl, Nd, and a moderate number of special cases mostly to fix Thai language
support (to fix is_alpha returning false for letters in category Mn). However
Thai is not the only language affected; any language that uses non-spacing
letters is broken by glibc's deficient is_alpha definition. As a particular
example, all of the Tibetan subjoined letters are considered non-alphabetic
(and thus punctuation) by glibc.

Unicode addresses this issue by defining the Other_Alphabetic property in
PropList.txt and the Alphabetic derived property in DerivedCoreProperties.txt,
the latter of which consists of Lu+Ll+Lt+Lm+Lo+Nl + Other_Alphabetic. This
subsumes all special-case hacks for Thai in glibc's gen-unicode-ctype.c and
fixes the issue (at least approximately) for all other languages/scripts at the
same time.

glibc's localedata should adopt the definition of Alphabetic from Unicode's 
DerivedCoreProperties.txt (and still add Nd and the special cases from So).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-04-15 14:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23  4:22 [Bug localedata/14010] New: Serious omissions in alphabetic character class bugdal at aerifal dot cx
2012-09-21 23:46 ` [Bug localedata/14010] " bugdal at aerifal dot cx
2012-09-23 22:39 ` joseph at codesourcery dot com
2013-10-25 20:32 ` myllynen at redhat dot com
2013-10-25 20:34 ` bugdal at aerifal dot cx
2013-10-25 20:34 ` joseph at codesourcery dot com
2013-10-25 20:34 ` bugdal at aerifal dot cx
2014-06-25 12:09 ` fweimer at redhat dot com
2014-12-04 10:34 ` maiku.fabian at gmail dot com
2020-04-15 13:51 ` meave390 at gmail dot com
2020-04-15 14:02 ` meave390 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).