Herein-attached is an alternative fix. The code is a little less straightforward, but it is supposed to be more efficient.
Frankly speaking, as indexes are not the main part of a document, I don't think that there is any measurable performance difference, but I like the idea to code it in a way that does not change at all anything else than the UTF-8. V. --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus
Index: ChangeLog =================================================================== --- ChangeLog (revision 7847) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2017-07-28 Vincent Belaïche <vincen...@users.sourceforge.net> + + * doc/texinfo.tex: Fix UTF-8 encoding in index files. + 2017-06-24 Gavin Smith <gavinsmith0...@gmail.com> * tp/Texinfo/Parser.pm (_parse_texi): Remove debugging code Index: doc/texinfo.tex =================================================================== --- doc/texinfo.tex (revision 7847) +++ doc/texinfo.tex (working copy) @@ -3,7 +3,7 @@ % Load plain if necessary, i.e., if running under initex. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi % -\def\texinfoversion{2017-06-04.19} +\def\texinfoversion{2017-07-28.23} % % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, @@ -4859,6 +4859,7 @@ % Used when writing an index entry out to an index file to prevent % expansion of Texinfo commands that can appear in an index entry. % +\def\temp#1{ \def\indexdummies{% \escapechar = `\\ % use backslash in output files. \definedummyletter\@% @@ -4870,8 +4871,16 @@ % % Do the redefinitions. \definedummies -} + % Place-holder for UTF-8 specific dummy-fying + #1% +}} +\ifx\declaredencoding\utfeight + \temp{\setnonasciicharscatcodenonglobal\other} +\else + \temp{} +\fi + % Used for the aux and toc files, where @ is the escape character. % \def\atdummies{%
Le 28/07/2017 à 20:48, Vincent Belaïche a écrit : > Re-hello, > > Actually, the fix is fairly simple. Sorry for not letting you more time > think about it. I attached it. > > Vincent. > > PS : BTW, there is not test bench for texinfo.tex non regression, so I > could not submit the corresponding test for this bug. > > > > --- [...]