summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@debian.org>2010-10-27 10:56:24 +0300
committerFather Chrysostomos <sprout@cpan.org>2010-10-27 05:52:22 -0700
commitb3fd61496ebc585b1115807e3195f17714662a09 (patch)
tree3466930c913145aebb2da4ef7fe12a0152be71eb /op.c
parent903eb63f7d8d47a38971a8e9af7201b9927882cf (diff)
downloadperl-b3fd61496ebc585b1115807e3195f17714662a09.tar.gz
Don't fold constants in sprintf() if locales are used
Commit c427f4d2d4575fbc8a5190932fe321136c7597b3 in 5.10.1 made sprintf() ignore LC_NUMERIC for numeric constants.
Diffstat (limited to 'op.c')
-rw-r--r--op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index 150262840a..ce9c2206fc 100644
--- a/op.c
+++ b/op.c
@@ -2606,6 +2606,7 @@ S_fold_constants(pTHX_ register OP *o)
case OP_SLE:
case OP_SGE:
case OP_SCMP:
+ case OP_SPRINTF:
/* XXX what about the numeric ops? */
if (PL_hints & HINT_LOCALE)
goto nope;