summaryrefslogtreecommitdiff
path: root/pp.c
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-16 13:03:53 +0000
commitf93f4e4670f12de7577ebaebeb5e31d4510ff4fe (patch)
tree10619fb7889a8bcdaed40144c803c17fa0fa25ec /pp.c
parenta65e9df7d11c78917193138b8249299b47efd8b4 (diff)
downloadperl-f93f4e4670f12de7577ebaebeb5e31d4510ff4fe.tar.gz
The numeric locale was reset to "C" by s?printf and never restored.
Subject: [ID 20000809.003] setlocale(LC_NUMERIC...) produces different results in 5.005 and 5.6 Message-Id: <20000809170517.A25389@held> No test since adding the failing example to locale.t does not fail -- probably because the locale settings are so thoroughly tweaked by that time. Running the example standalone does fail, though. UPDATE: test case added at change #7540. p4raw-link: @7540 (not found) p4raw-id: //depot/perl@6648
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index 5371f31d80..d5d5dd88b0 100644
--- a/pp.c
+++ b/pp.c
@@ -1820,7 +1820,7 @@ PP(pp_log)
NV value;
value = POPn;
if (value <= 0.0) {
- RESTORE_NUMERIC_STANDARD();
+ SET_NUMERIC_STANDARD();
DIE(aTHX_ "Can't take log of %g", value);
}
value = Perl_log(value);
@@ -1836,7 +1836,7 @@ PP(pp_sqrt)
NV value;
value = POPn;
if (value < 0.0) {
- RESTORE_NUMERIC_STANDARD();
+ SET_NUMERIC_STANDARD();
DIE(aTHX_ "Can't take sqrt of %g", value);
}
value = Perl_sqrt(value);