summaryrefslogtreecommitdiff
path: root/t/pragma/locale.t
diff options
context:
space:
mode:
authorChristian Kirsch <ck@held.mind.de>2000-08-09 19:05:17 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-09 20:41:18 +0000
commit68d47915e40dc6ab5050a2c749c177f42d1374ff (patch)
treed36d124197e33f9efacd14800e22b38b1df13714 /t/pragma/locale.t
parentc1576c9fc988b85e987fb11c0534fc990dbd98a8 (diff)
downloadperl-68d47915e40dc6ab5050a2c749c177f42d1374ff.tar.gz
(The fix did work but was not right, retracted in #6573)
Subject: [ID 20000809.003] setlocale(LC_NUMERIC...) produces different results in 5.005 and 5.6 Message-Id: <20000809170517.A25389@held> p4raw-id: //depot/perl@6559
Diffstat (limited to 't/pragma/locale.t')
-rwxr-xr-xt/pragma/locale.t23
1 files changed, 14 insertions, 9 deletions
diff --git a/t/pragma/locale.t b/t/pragma/locale.t
index 414ceffe96..5f601153aa 100755
--- a/t/pragma/locale.t
+++ b/t/pragma/locale.t
@@ -664,6 +664,7 @@ foreach $Locale (@Locale) {
print "# testing 116 failed for locale '$Locale' for characters @f\n"
if @f;
}
+
}
# Recount the errors.
@@ -709,26 +710,30 @@ EOW
}
}
-# Tell which locales ere okay.
+# Tell which locales were okay.
if ($didwarn) {
my @s;
foreach my $l (@Locale) {
my $p = 0;
- foreach my $t (102..102) {
+ foreach my $t (102..116) {
$p++ if $Problem{$t}{$l};
}
push @s, $l if $p == 0;
}
- my $s = join(" ", @s);
- $s =~ s/(.{50,60}) /$1\n#\t/g;
-
- warn
- "# The following locales\n#\n",
- "#\t", $s, "\n#\n",
- "# tested okay.\n#\n",
+ if (@s) {
+ my $s = join(" ", @s);
+ $s =~ s/(.{50,60}) /$1\n#\t/g;
+
+ warn
+ "# The following locales\n#\n",
+ "#\t", $s, "\n#\n",
+ "# tested okay.\n#\n",
+ } else {
+ warn "# None of your locales was fully okay.\n";
+ }
}
# eof