On Tue, Oct 13, 2026 at 08:20:31PM +0000, Werner LEMBERG wrote:
>
> > I haven't reproduced this, as seen in the output below. I don't
> > have any idea why it would come out like that.
> >
> > Can you confirm what version of texinfo.tex you are using as this would
> > affect the contents of the unsorted test.fn file?
>
> I'm using the most recent version of `texinfo.tex`; my `test.fn` looks
> the same as yours, so this isn't an issue. It is rather a problem
> with the `texindex.awk` script.
>
> Attached is the version of `texindex.awk` that I get after compiling
> current git with
>
> ./autogen.sh && ./configure && make -j12 && sudo make install
>
> My `awk` version on my openSUSE 16.0 Leap box identifies itself as
> follows.
>
> GNU Awk 5.3.2, API 4.0, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)
>
> I directly called the awk script with
>
> /usr/bin/awk -f texindex.awk test.fn
>
>
> Werner
I see, it is a difference based on awk implementation. I was testing
with mawk, not gawk. I will investigate further.
$ /usr/bin/awk --version
mawk 1.3.4 20240123
Copyright 2008-2023,2024, Thomas E. Dickey
Copyright 1991-1996,2014, Michael D. Brennan
random-funcs: arc4random_stir/arc4random
regex-funcs: internal
compiled limits:
sprintf buffer 8192
maximum-integer 9223372036854775808
$ /usr/bin/awk -f texindex.awk test.fn
$ cat test.fns
@initial {{@indexbackslash}}
@entry{@code {@backslashchar {}@backslashchar {}}}{1}
@initial {A}
@entry{@code {a}}{1}
@entry{@code {A}}{1}
@initial {Z}
@entry{@code {z}}{1}
@entry{@code {Z}}{1}
$ /usr/bin/gawk -f texindex.awk test.fn
$ cat test.fns
@initial {A}
@entry{@code {A}}{1}
@initial {Z}
@entry{@code {Z}}{1}
@initial {A}
@entry{@code {a}}{1}
@initial {Z}
@entry{@code {z}}{1}
@initial {{@indexbackslash}}
@entry{@code {@backslashchar {}@backslashchar {}}}{1}