On Tue, Nov 19, 2024 at 09:04:19PM +0000, Gavin Smith wrote: > While testing texi2any, I accidentally found a bug: > > $ export top_srcdir=../../ top_builddir=.. TEXINFO_DEV_SOURCE=1 > $ ./texi2any ../doc/info-stnd.info > texi2any: warning: input file info-stnd.info; did you mean info-stnd.texi? > You found a bug: Should be at end of line but have [inde] > ' > > Additional information: > last location: info-stnd.info:2106 > context_stack: (ct_base) > current: (before_node_section)[C1078] at ../../tp/Texinfo/ParserNonXS.pm line > 1144. > Died at ../../tp/Texinfo/ParserNonXS.pm line 7647.
I could not reproduce. At info-stnd.info:2106 there is: ^@^H[index^@^H] There is therefore a NULL byte at that point, I got something similar by running texi2any on a binary file, this time rigth after ^T. I could't reproduce with a simple input file. With another binary file it is after ^Q. I only reproduce with TEXINFO_XS=omit. So I guess there is something unexpected going on with a regexp in Perl. I could investigate more in a few days. -- Pat