On Sat, Jul 11, 2026 at 06:05:02PM +0100, Gavin Smith wrote: > On Sat, Jul 11, 2026 at 12:48:51PM +0000, ThomB wrote: > > Hello there. > > > > There is a bug in the standalone info viewer (v7.3) where index entries can > > be > > parsed incorrectly if the target node is del-quoted. You can see this by > > issuing, for example: > > > > info texi2any_internals --index-search xml_accent > > > > You should see a message that the node wasn't found.
I'd actually removed \177 from the strcspn argument in the past (without updating the comment): commit b576b6b8821ef74445f1208c3fa07209b3925bfd Author: Gavin Smith <[email protected]> Date: 2024-12-30 19:39:36 +0000 * info/scan.c (INFO_QUOTE, INFO_QUOTE_STR): Define to avoid using \177 literals or equivalent. This should make the purpose of the code clearer. (scan_node_contents, read_quoted_string) (scan_reference_target, scan_reference_label): Use. (scan_reference_label): Do not check for INFO_QUOTE in a place it should not be necessary. @@ -1148,7 +1151,7 @@ scan_reference_label (REFERENCE *entry, int in_index) while (1) { - n = strcspn (p, ":\n\177"); + n = strcspn (p, ":\n"); if (p[n] == ':') { m += n + 1; This was wrong, as you found. I've applied the fixes and fixes you sent. Thanks for the thorough investigation and fix.
