Re: re_compile_pattern change

2006-12-24 Thread Paul Eggert
[EMAIL PROTECTED] writes:

> One difference I noted in the test code used between tar-1.16.1 and
> findutils-4.2.29 (2.60 vs 2.60a) was:
>
> tar:   s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
> findutils: s = re_compile_pattern ("a[:]:]b\n", 9, ®ex);
>
> A printf in both shows that tar says "Invalid character class name" as the
> comment in the code says it should. findutils says null causing an exit
> code of 1 and the test to fail.

The 'tar' version is correct.  But this is not an Autoconf issue; it
is a gnulib version issue.  The gnulib fix (dated March 25) is here:

http://cvs.savannah.gnu.org/viewcvs/gnulib/gnulib/m4/regex.m4?r1=1.50&r2=1.51

but apparently findutils is running with an older version of gnulib.

I don't see any reason findutils shouldn't be using the latest CVS
gnulib.  I'll CC: this to [EMAIL PROTECTED] to give the findutils
maintainers a heads-up on the bug.




re_compile_pattern change

2006-12-24 Thread jeff
In gettext-0.16.1 and findutils-4.2.29, the version of autoconf used was
2.61 and 2.60a respectively. gettext-0.14.5, findutils-4.2.27, tar-1.16.1,
coreutils-5.96, diffutils-2.8.1, grep-2.5.1a, and inetutils-1.5 all used
2.60 or older. The reason I bring this up is that the outcome of
re_compile_pattern has changed somewhere between 2.60 and 2.60a and I
don't know if it is a bug in the newer autoconf (>2.60), or a
long-standing bug in the older versions of autoconf (<=2.60).

One difference I noted in the test code used between tar-1.16.1 and
findutils-4.2.29 (2.60 vs 2.60a) was:

tar:   s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
findutils: s = re_compile_pattern ("a[:]:]b\n", 9, ®ex);

A printf in both shows that tar says "Invalid character class name" as the
comment in the code says it should. findutils says null causing an exit
code of 1 and the test to fail.

I do not know which behavior is correct. Can someone shed some light on
this, please? I'm not subscribed, so please CC.

Thanks!