This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug regex/693] mishandled '\B'
- From: "arnold at skeeve dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Jan 2005 12:09: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 arnold at skeeve dot com 2005-01-30 12:09 -------
Hi. First, I appreciate the quick response on this issue. I am thus
saddened to say that the behavior between the current CVS and the original
regex is not identical. And to be honest, I'm not sure which is "correct".
Here's a script showing the difference:
$ cat typescript
Script started on Sun Jan 30 14:03:31 2005
bash-2.05b$ cat gnureop2.awk
BEGIN {
print (" " ~ / \B /) # test dfa matcher
a = " "
gsub(/\B/, "x", a) # test regex matcher
print a
}
bash-2.05b$ gawk-3.1.1 -f gnureop2.awk # old regex
1
x
bash-2.05b$ gawk-3.1.4 -f gnureop2.awk # previous glibc regex
1
bash-2.05b$ ./gawk -f gnureop2.awk # current CVS glibc regex
1
x x x
bash-2.05b$
Script done on Sun Jan 30 14:04:26 2005
--
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.