On Thu, Jan 15, 2026 at 08:25:14PM +0200, Eli Zaretskii wrote:
> I guess I'm missing something, then, because the test script does
> this:
>
> srcdir=${srcdir:-.}
> . $srcdir/t/Init-test.inc
>
> # Follow an reference to "file-menu" in dir without matching label exactly
> $ginfo --output - FiLe-M | grep "^File: file-menu,"
>
> I understand that the Info file it uses is infodir/dir, is that
> correct (even this was something it took a lot of time to understand)?
> But then what is "FiLe-M" in the above command?
>
> Thanks.
Yes, it loads infodir/dir initially.
The "FiLe-M" should use the following entry in that file:
* file-menu: (file-menu).
The test is to check if it can still find that dir entry even though the
case of the letters does not match.
It could be related to multibyte support as the comparison is done
with the mbscasecmp function from gnulib. I believe the checks would
be done in info_get_menu_entry_by_label in scan.c.