Re: texinfo-7.2.90 on OpenBSD

Bruno Haible via Bug reports for the GNU Texinfo documentation system <[email protected]>
Newsgroups gmane.comp.tex.texinfo.bugs
Organization GNU
Message-ID <2120328.SgzmzKf9OT@nimes>
Hi Patrice,

> I just did that test on cfarm220.  The french locale is installed:
> 
> $ locale -a |grep fr                
> fr_BE.UTF-8
> fr_CA.UTF-8
> fr_CH.UTF-8
> fr_FR.UTF-8
> 
> But in gettext-tools/tests, I get
> $ ./lang-perl-2
> fr.po:2: warning: header field 'Project-Id-Version' missing in header
> fr.po:2: warning: header field 'PO-Revision-Date' missing in header
> fr.po:2: warning: header field 'Last-Translator' missing in header
> fr.po:2: warning: header field 'Language-Team' missing in header
> fr.po:2: warning: header field 'MIME-Version' missing in header
> fr.po:2: warning: header field 'Content-Transfer-Encoding' missing in header
> fr.po:2: warning: header field 'Language' missing in header
> Skipping test: no french locale is supported

I see this as well.

> I investigated a bit, and it seems to me that the reason why it is
> skipped is that, near the end of the lang-perl-2 script, the following
> does not lead to $LOCALE_FR_UTF8 to be set:
> : ${LOCALE_FR_UTF8=fr_FR.UTF-8}

That sounds like the /bin/sh would have a bug. But in fact, $LOCALE_FR_UTF8
comes from config.status:

  $ grep LOCALE_FR config.status                                                                                                          
  S["LOCALE_FR_UTF8"]="none"
  S["LOCALE_FR"]="none"

configure has determined that the fr_FR.UTF-8 locale is a fake one, and
therefore set LOCALE_FR_UTF8 to "none".

> If I add
> LOCALE_FR_UTF8=fr_FR.UTF-8
> the test passes

If I do this in config.status, complete the build, and run the tests, indeed
lang-perl-2 PASSes, which means that there is no problem in the integration
with libintl-perl.

Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.