On Tue, Jan 07, 2025 at 06:51:56PM +0100, Patrice Dumas wrote: > On Tue, Jan 07, 2025 at 06:37:51PM +0100, Andreas Schwab wrote: > > On Jan 07 2025, Patrice Dumas wrote: > > > > > I do not think that it can be fixed in texi2any, though, so it is > > > probably best to leave the issue unresolved, since this is not a message > > > that texi2any output (unless I missed something). > > > > The message are coming from the locale program: > > > > $ LC_ALL=foo locale > > locale: Cannot set LC_CTYPE to default locale: No such file or directory > > locale: Cannot set LC_MESSAGES to default locale: No such file or directory > > locale: Cannot set LC_ALL to default locale: No such file or directory > > Indeed, I now feel dumb ;-). We call "locale -a" to get a locale we can > use to switch to, both in Perl and in C, this is probably why. Maybe we > could redirect locale -a stderr to /dev/null (we do not call locale -a > on _WIN3/MSWin32).
That would succeed in suppressing the error messages from "locale", but it wouldn't make the strings be translated properly. In fact, the error messages from "locale" were useful in this case for investigating why the strings were not translated and why the tests failed, so it seems more useful to keep them than to silence them.