From f9cece52f95847352a2a7e3bf9e3f59a5ae90816 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Sat, 26 Feb 2011 17:07:33 -0700 Subject: index: fix another regression from faulty strstr * doc/m4.texinfo (Index macro): Test for the bug. * THANKS: Update. Reported by Mike Stump, with additional analysis from Ralf Wildenhues and Jim Meyering. Signed-off-by: Eric Blake --- THANKS | 1 + doc/m4.texi | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/THANKS b/THANKS index 0fa1a1b6..70e03546 100644 --- a/THANKS +++ b/THANKS @@ -107,6 +107,7 @@ Mike Frysinger vapier@gentoo.org Mike Howard mike@clove.com Mike Lijewski lijewski@theory.tc.cornell.edu Mike R. mroberge@aol.com +Mike Stump mikestump@comcast.net Mikhail Teterin Mikhail.Teterin@murex.com Nelson H. F. Beebe beebe@math.utah.edu Nick S. Kanakakorn skanan@otl.scu.edu diff --git a/doc/m4.texi b/doc/m4.texi index 84382a73..d25b8b9e 100644 --- a/doc/m4.texi +++ b/doc/m4.texi @@ -6896,6 +6896,14 @@ index(`;:11-:12-:12-:12-:12-:12-:12-:12-:12.:12.:12.:12.:12.:12.:12.:12.:12-:', `:12-:12-:12-:12-:12-:12-:12-:12-') @result{}-1 @end example + +@comment Expose a bug in the gnulib replacement strstr() algorithm +@comment present from Jun 2010 to Feb 2011, including m4 1.4.15. + +@example +index(`..wi.d.', `.d.') +@result{}4 +@end example @end ignore @node Regexp -- cgit v1.2.1