texinfo 4.6.93: install-info mishandles '/'

Andreas Schwab <[email protected]> Sat, 27 Mar 2004 11:18:15 +0100
Newsgroups gmane.comp.tex.texinfo.pretest
Message-ID <[email protected]>
install-info mishandles '/' in an entry description, like the one in the
install-info entry.

Andreas.

2004-03-27  Andreas Schwab  <[email protected]>

	* util/install-info.c (menu_item_equal): Don't scan past
	term_char.

--- util/install-info.c.~1.4.~	2004-03-27 10:48:59.000000000 +0100
+++ util/install-info.c	2004-03-27 11:14:01.565974830 +0100
@@ -328,9 +328,10 @@ menu_item_equal (const char *item, char 
      filename from the new dir entries, not the filename on the command
      line.  Not worrying about those things right now, though.  --karl,
      26mar04.  */
-  while (*item_basename && !IS_SLASH (*item_basename))
+  while (*item_basename && !IS_SLASH (*item_basename)
+	 && *item_basename != term_char)
     item_basename++;
-  if (! *item_basename)  
+  if (! *item_basename || *item_basename == term_char)
     item_basename = item;  /* no /, use original */
   else
     item_basename++;       /* have /, move past it */

-- 
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://ff0.org/mailman/listinfo/texinfo-pretest