This is the mail archive of the
glibc-bugs-regex@sourceware.org
mailing list for the glibc project.
[Bug regex/9697] character does not match neither [a-z] nor [^a-z]
- From: "bonzini at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 3 Jan 2009 15:08:19 -0000
- Subject: [Bug regex/9697] character does not match neither [a-z] nor [^a-z]
- References: <20081230174726.9697.bonzini@gnu.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bonzini at gnu dot org 2009-01-03 15:08 -------
Created an attachment (id=3634)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=3634&action=view)
working patch
Here is the logic I used:
- for [^...], [[:class:]], [[=elem=] try at every position that starts
a multibyte character. The correct singlebyte character positions are
chosen by the corresponding SIMPLE_BRACKET.
- for [[.elem.]] and ranges, try at every position that might start a
multibyte collation element. Again, singlebyte collation elements are
taken care of by SIMPLE_BRACKETs.
- unless the second bullet is used, of course, multibyte characters
must be added separately to the fastmap.
Tested on i686-pc-linux-gnu together with the other patch I sent on
2008-12-31, and on which this depends. Ok?
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #3629 is|0 |1
obsolete| |
AssignedTo|drepper at redhat dot com |bonzini at gnu dot org
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=9697
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.