On Tue, Mar 31, 2026 at 08:42:40AM +0200, Bruno Haible via Bug reports for the 
GNU Texinfo documentation system wrote:
> Hi Patrice,
> 
> > > The CI reports test failures on Alpine Linux today, that were not present
> > > a week ago:
> > > 
> > > FAIL: test_scripts/formatting_documentlanguage_cmdline.sh
> > > FAIL: test_scripts/layout_formatting_fr.sh
> > > FAIL: test_scripts/layout_formatting_fr_info.sh
> > > FAIL: test_scripts/layout_formatting_fr_icons.sh
> > 
> > Indeed, I added an XS interface for strings translations, such that only
> > one implementation is used, either libintl-perl, or C gettext.  As a
> > consequence, the C gettext is now used in the default case on alpine
> > linux, and as it was already determined, musl does not use the LANGUAGE
> > environment variable to set the language for messages translations
> > retrieval.  I fiwed this by setting the configure switch that leads to
> > using libintl-perl, by calling Perl from C, --enable-xs-perl-libintl.
> 
> ... in the CI.
> 
> I see this is documented in the INSTALL file. May I suggest a tiny change:
> it is possible to use GNU gettext's libintl _with_ musl libc, rather than
> the gettext() function _in_ musl libc.

Thanks, applied.


> From c5dffdc512f15cd8fcba55e49e50fa23b797b498 Mon Sep 17 00:00:00 2001
> From: Bruno Haible <[email protected]>
> Date: Tue, 31 Mar 2026 08:41:31 +0200
> Subject: [PATCH] * INSTALL: Tweak wording regarding musl libc.
> 
> ---
>  INSTALL | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/INSTALL b/INSTALL
> index a0f4998135..c99b50f78f 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -102,8 +102,8 @@ Installation notes specific to Texinfo:
>  
>  * Native code (in XS modules) get translations for strings to be put in
>    output files using libc gettext, using the LANGUAGE variable.  If the
> -  gettext implementation (such as that on musl) does not support this
> -  variable, this will not work and strings will not be translated.
> +  gettext implementation (such as that in musl libc) does not support
> +  this variable, this will not work and strings will not be translated.
>    However, if you pass the --enable-xs-perl-libintl flag to `configure',
>    an alternative translation method is activated where C code calls back
>    into the Perl interpreter to get translations, which does work.
> -- 
> 2.52.0
> 


  • new ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
    • ... Patrice Dumas
      • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
        • ... Gavin Smith

Reply via email to