summaryrefslogtreecommitdiff
path: root/t/pragma
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2001-01-18 10:45:37 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-19 14:08:37 +0000
commitdb4b74455a92b07df967acd6d937f841399044da (patch)
tree5eb525621359ef856179f625217a80f413070df1 /t/pragma
parent31963e909361ec09bb0e4d84037d475a5b5977d5 (diff)
downloadperl-db4b74455a92b07df967acd6d937f841399044da.tar.gz
PATCH pragma/locale.t
Message-ID: <m3lms98czy.fsf@ak-71.mind.de> p4raw-id: //depot/perl@8480
Diffstat (limited to 't/pragma')
-rwxr-xr-xt/pragma/locale.t26
1 files changed, 16 insertions, 10 deletions
diff --git a/t/pragma/locale.t b/t/pragma/locale.t
index 61528b35c3..068fedeac8 100755
--- a/t/pragma/locale.t
+++ b/t/pragma/locale.t
@@ -15,8 +15,18 @@ use strict;
my $debug = 1;
+use Dumpvalue;
+
+my $dumper = Dumpvalue->new(
+ tick => qq{"},
+ quoteHighBit => 0,
+ unctrl => "quote"
+ );
sub debug {
- print @_ if $debug;
+ return unless $debug;
+ my($mess) = join "", @_;
+ chop $mess;
+ print $dumper->stringify($mess,1), "\n";
}
sub debugf {
@@ -428,8 +438,6 @@ my %Neoalpha;
sub tryneoalpha {
my ($Locale, $i, $test) = @_;
- debug "# testing $i with locale '$Locale'\n"
- unless $Testing{$i}{$Locale}++;
unless ($test) {
$Problem{$i}{$Locale} = 1;
debug "# failed $i with locale '$Locale'\n";
@@ -441,7 +449,7 @@ sub tryneoalpha {
foreach $Locale (@Locale) {
debug "# Locale = $Locale\n";
@Alnum_ = getalnum_();
- debug "# \\w = @Alnum_\n";
+ debug "# w = ", join("",@Alnum_), "\n";
unless (setlocale(LC_ALL, $Locale)) {
foreach (99..103) {
@@ -476,9 +484,9 @@ foreach $Locale (@Locale) {
delete $lower{$_};
}
- debug "# UPPER = ", join(" ", sort keys %UPPER ), "\n";
- debug "# lower = ", join(" ", sort keys %lower ), "\n";
- debug "# BoThCaSe = ", join(" ", sort keys %BoThCaSe), "\n";
+ debug "# UPPER = ", join("", sort keys %UPPER ), "\n";
+ debug "# lower = ", join("", sort keys %lower ), "\n";
+ debug "# BoThCaSe = ", join("", sort keys %BoThCaSe), "\n";
# Find the alphabets that are not alphabets in the default locale.
@@ -494,7 +502,7 @@ foreach $Locale (@Locale) {
@Neoalpha = sort @Neoalpha;
- debug "# Neoalpha = @Neoalpha\n";
+ debug "# Neoalpha = ", join("",@Neoalpha), "\n";
if (@Neoalpha == 0) {
# If we have no Neoalphas the remaining tests are no-ops.
@@ -661,7 +669,6 @@ foreach $Locale (@Locale) {
tryneoalpha($Locale, 114, $f == $c);
}
- debug "# testing 115 with locale '$Locale'\n";
# Does taking lc separately differ from taking
# the lc "in-line"? (This was the bug 19990704.002, change #3568.)
# The bug was in the caching of the 'o'-magic.
@@ -687,7 +694,6 @@ foreach $Locale (@Locale) {
lcA($x, $z) == 0 && lcB($x, $z) == 0);
}
- debug "# testing 116 with locale '$Locale'\n";
# Does lc of an UPPER (if different from the UPPER) match
# case-insensitively the UPPER, and does the UPPER match
# case-insensitively the lc of the UPPER. And vice versa.