This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug regex/693] mishandled '\B'
- From: "kasal at ucw dot cz" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 31 Jan 2005 05:40:31 -0000
- Subject: [Bug regex/693] mishandled '\B'
- References: <20050125103144.693.kasal@ucw.cz>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From kasal at ucw dot cz 2005-01-31 05:40 -------
(In reply to comment #6)
> print (" " ~ / \B /) # test dfa matcher
I tried the following:
$ gawk 'BEGIN{print "a b" ~ /\B/}'
0
$ gawk 'BEGIN{print " b" ~ /\B/}'
1
$ gawk 'BEGIN{print "a " ~ /\B/}'
1
This proves that the dfa matcher has the same opinion of the current CVS regex.
I'd to conclude that the old regex contained a bug which was not discovered
until now, when it is dead for more than 2 years.
(FWIW, I have also verified that perl has the same behaviour as PCRE and new
regex and dfa.c.)
The current regex.c seems OK. Thank you again, Jakub.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://sources.redhat.com/bugzilla/show_bug.cgi?id=693
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.