This is a continuation of report: https://tug.org/pipermail/latexrefman/2026q1/000983.html
To summarize the point: it would be great if texi2pdf / texi2dvi would autonomously pass the correct locale to AWK texindex script based on @documentlanguage + @documentencoding statements. Please note that I came accross one more time on this issue, and I was suggested to report it to you, see here: https://lists.gnu.org/archive/html/emacs-devel/2026-04/msg00573.html I attached a patch that fixes the problem for me. Please note that IMHO changing sh to bash would not harm anybody and would make that sort of fix quite easier. Please note that looking at only over the 64 first lines is arbitrary. The objective is not to degrade too much the compile time. Please note that stopping after the first match is to avoid silently the case were there are several @documentlanguage (or @documentencoding) statements. I am not sure was Texinfo behaviour is, but I assume that it should consider only the first one and emit a warning/error on the subsequent ones. Vincent.
patch 2.diff
Description: patch 2.diff
