This is the mail archive of the 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/693] mishandled '\B'

------- 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/}'
$ gawk 'BEGIN{print " b" ~ /\B/}'
$ gawk 'BEGIN{print "a " ~ /\B/}'

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

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