This is the mail archive of the glibc-bugs-regex@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/9697] character does not match neither [a-z] nor [^a-z]


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]