summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2002-01-11 16:47:15 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-11 20:04:26 +0000
commit2cf2cfc6ec6384231f5e996b330e88a28ca597d7 (patch)
tree9ebb6bb351095189368061af01b8e346e836590f /doop.c
parent7231552fa00684278e830b131e4c41fe58702edd (diff)
downloadperl-2cf2cfc6ec6384231f5e996b330e88a28ca597d7.tar.gz
Fix for
Subject: UTF-8 sprintf bug in bleadperl Message-ID: <m3vge99c7g.fsf@anima.de> I have tests, have just to figure out where to put them since op/sprintf looks a bit unfriendly for tests of somewhat freer form. p4raw-id: //depot/perl@14194
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/doop.c b/doop.c
index 9f0fa6466a..0c7abf46ca 100644
--- a/doop.c
+++ b/doop.c
@@ -697,6 +697,8 @@ Perl_do_sprintf(pTHX_ SV *sv, I32 len, SV **sarg)
char *pat = SvPV(*sarg, patlen);
bool do_taint = FALSE;
+ if (DO_UTF8(*sarg))
+ SvUTF8_on(sv);
sv_vsetpvfn(sv, pat, patlen, Null(va_list*), sarg + 1, len - 1, &do_taint);
SvSETMAGIC(sv);
if (do_taint)