On Sun, Jun 02, 2024 at 10:55:26AM +0200, Patrice Dumas wrote: > On Sun, Jun 02, 2024 at 07:09:50AM +0000, Jean-Christophe Helary wrote: > > Ok. I'm using Texinfo 7.1 from brew (macOS) and with the same file and > > same command I get "Previous", "Up", "Top" and "Footnotes". > > > > I guess there is a bug in the installation process. > > > > How can I check where does texinfo take its FR strings from? > > It is not easy to check at runtime, as the gettext framework does not allow > to get > information on the directories actually searched for.
One way is to use the strace program to see what files the program has tried to open. For example: $ strace perl `which texi2any` test.texi 2>strace.log $ grep texinfo_document strace.log newfstatat(AT_FDCWD, "/usr/local/share/locale/fr/LC_MESSAGES/texinfo_document.mo", {st_mode=S_IFREG|0644, st_size=17359, ...}, 0) = 0 newfstatat(AT_FDCWD, "/usr/local/share/locale/fr/LC_MESSAGES/texinfo_document.mo", {st_mode=S_IFREG|0644, st_size=17359, ...}, 0) = 0 openat(AT_FDCWD, "/usr/local/share/locale/fr/LC_MESSAGES/texinfo_document.mo", O_RDONLY|O_CLOEXEC) = 4 0$