This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [regex] Fix BZ429
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>, libc-alpha at sources dot redhat dot com
- Date: Fri, 12 Nov 2004 10:00:32 +0100
- Subject: Re: [regex] Fix BZ429
- References: <4191F700.2030707@lu.unisi.ch> <41945CBD.7090501@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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