This is the mail archive of the glibc-bugs@sources.redhat.com 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 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.


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