X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/a44d0896a6c4bfe01ea532694b8c1c073ea6a2f1..ad790500e6fadbcb6628bc201e3e06cf6ac536b1:/lib/locale.t diff --git a/lib/locale.t b/lib/locale.t index 64d71c3..a66810b 100644 --- a/lib/locale.t +++ b/lib/locale.t @@ -258,7 +258,7 @@ debug "# Scanning for locales...\n"; # Note that it's okay that some languages have their native names # capitalized here even though that's not "right". They are lowercased # anyway later during the scanning process (and besides, some clueless -# vendor might have them capitalized errorneously anyway). +# vendor might have them capitalized erroneously anyway). my $locales = <= 8 and $v < 10) { debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n"; - @Locale = grep ! m/^(eu_ES|be_BY\.CP1131)$/, @Locale; - } elsif ($v < 11) { + @Locale = grep ! m/^(eu_ES(?:\..*)?|be_BY\.CP1131)$/, @Locale; + } elsif ($v < 12) { debug "# Skipping be_BY locales -- buggy in Darwin\n"; @Locale = grep ! m/^be_BY\.CP1131$/, @Locale; - } + } } @Locale = sort @Locale; @@ -802,26 +802,26 @@ foreach $Locale (@Locale) { # With utf8 both will fail since the locale concept # of upper/lower does not work well in Unicode. push @f, $x unless $x =~ /$y/i == $y =~ /$x/i; + } - foreach my $x (keys %lower) { - my $y = uc $x; - next unless lc $y eq $x; - print "# lower $x uc $y ", - $x =~ /$y/i ? 1 : 0, " ", - $y =~ /$x/i ? 1 : 0, "\n" if 0; - if ($x =~ $re || $y =~ $re) { # See above. - print "# Regex characters in '$x' or '$y', skipping test 117 for locale '$Locale'\n"; - next; - } - # With utf8 both will fail since the locale concept - # of upper/lower does not work well in Unicode. - push @f, $x unless $x =~ /$y/i == $y =~ /$x/i; + foreach my $x (keys %lower) { + my $y = uc $x; + next unless lc $y eq $x; + print "# lower $x uc $y ", + $x =~ /$y/i ? 1 : 0, " ", + $y =~ /$x/i ? 1 : 0, "\n" if 0; + if ($x =~ $re || $y =~ $re) { # See above. + print "# Regex characters in '$x' or '$y', skipping test 117 for locale '$Locale'\n"; + next; } - tryneoalpha($Locale, 117, @f == 0); - if (@f) { - print "# failed 117 locale '$Locale' characters @f\n" - } - } + # With utf8 both will fail since the locale concept + # of upper/lower does not work well in Unicode. + push @f, $x unless $x =~ /$y/i == $y =~ /$x/i; + } + tryneoalpha($Locale, 117, @f == 0); + if (@f) { + print "# failed 117 locale '$Locale' characters @f\n" + } } }