This is the mail archive of the libc-alpha@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]

Re: [regex] Fix BZ429


On Thu, Nov 11, 2004 at 10:48:29PM -0800, Ulrich Drepper wrote:
> I get:
> 
> m[0] = "civic"
> m[1] = "c"
> m[2] = "i"
> m[3] = ""
> m[4] = ""
> m[5] = ""
> m[6] = ""
> m[7] = ""
> m[8] = ""
> m[9] = ""
> 
> which is pretty much all wrong.

Why?  That's IMHO the expected result.
If you modify your testcase, so that it does only:
  p = "^(.?)(.?)(.?)(.?)(.?).?"
    "\\5\\4\\3\\2\\1$";
(so that it finishes in reasonable time)
and run it against vanilla CVS, you get:
m[0] = "civic"
m[1] = "c"
m[2] = "i"
m[3] = ""
m[4] = ""
m[5] = ""
m[6] unused
m[7] unused
m[8] unused
m[9] unused

	Jakub


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