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