develooper Front page | perl.perl5.porters | Postings from April 2010

Re: 5.12.0 test failures in lib/blib.t and lib/locale.t: Darwin/PPC

Thread Previous | Thread Next
From:
James E Keenan
Date:
April 15, 2010 19:47
Subject:
Re: 5.12.0 test failures in lib/blib.t and lib/locale.t: Darwin/PPC
Message ID:
20100416024707.27653.qmail@lists-nntp.develooper.com
James E Keenan wrote:
>
> Failed 2 tests out of 1687, 99.88% okay.
> ../lib/blib.t
> ../lib/locale.t

The problem with lib/locale.t is that the code simply fails to implement 
the specification for this version of Mac OS X reflected in inline comments:

     456 if ($^O eq 'darwin') {
     457     # Darwin 8/Mac OS X 10.4 and 10.5 have bad Basque locales: 
perl bug         #35895,
     458     # Apple bug ID# 4139653. It also has a problem in Byelorussian.
     459     (my $v) = $Config{osvers} =~ /^(\d+)/;
     460     if ($v >= 8 and $v < 10) {
     461     debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n";
     462     @Locale = grep ! m/^(eu_ES|be_BY\.CP1131)$/, @Locale;



The regex in the grep at line 462 fails to exclude these 3 locales:

   eu_ES.ISO8859-1 eu_ES.ISO8859-15 eu_ES.UTF-8

Note the absence of any allowance for '.SOMETHING' in 'eu_ES' even 
though it's accounted for in 'be_BY'.

The patch attached is not the most elegant, but it enables the test to pass.

Thank you very much.
Jim Keenan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About