From: Christian Kirsch Date: Wed, 9 Aug 2000 17:05:17 +0000 (+0200) Subject: (The fix did work but was not right, retracted in #6573) X-Git-Tag: accepted/trunk/20130322.191538~34622 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68d47915e40dc6ab5050a2c749c177f42d1374ff;p=platform%2Fupstream%2Fperl.git (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 --- diff --git a/sv.c b/sv.c index 382805f..92c53ee 100644 --- a/sv.c +++ b/sv.c @@ -6563,12 +6563,8 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV *--eptr = '#'; *--eptr = '%'; - { - RESTORE_NUMERIC_STANDARD(); - (void)sprintf(PL_efloatbuf, eptr, nv); - RESTORE_NUMERIC_LOCAL(); - } - + (void)sprintf(PL_efloatbuf, eptr, nv); + eptr = PL_efloatbuf; elen = strlen(PL_efloatbuf); break; diff --git a/t/pragma/locale.t b/t/pragma/locale.t index 414ceff..5f60115 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