This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Testcase for another regex bug]
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Isamu Hasegawa <isamu at yamato dot ibm dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Jack Howarth <howarth at bromo dot med dot uc dot edu>, libc-alpha at sources dot redhat dot com
- Date: Fri, 27 Sep 2002 22:09:16 -0700
- Subject: Re: [PATCH] Testcase for another regex bug]
- References: <20020911181008.Q1013@sunsite.ms.mff.cuni.cz> <ubs6jxxbq.wl@AMBER.yamato.ibm.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Isamu Hasegawa wrote:
> The problem was that there are some defects in the evaluations of back
> references. And I needed to restructure these evaluations.
> (I'm sorry for such a big patch.)
Thanks, I've applied the patch. Looks good.
> However, it might not be a sufficient patch, since dc.sed of sed-3.02
> seems to fall infinite loop.
> On the other hand, perhaps it might not be a bug, because the infinite
> loop of dc.sed seems not to be in regex but in the dc.sed script, and
> the behavior of regex was a bit changed from old regex.
> (e.g. Executing the following command returns the result "NG".
> $ echo aa | sed 's/\(a\+\)\{3\}/NG/'
> However, "\(a\+\)\{3\}" shouldn't match with "aa", should it?
> We fix these some dubious behaviors, and it might prevent dc.se
> from desirable behavior.)
This indeed shouldn't match. If dc.sed relies on this it's broken.
- --
- ---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9lTl92ijCOnn/RHQRAtWtAKC+D/jEEzmmk6wlg6zspHaOMNZuVQCfTvSZ
QOi6GVEakdpAdciAosngG9k=
=KZQj
-----END PGP SIGNATURE-----