diff options
author | Andreas König <a.koenig@mind.de> | 2002-01-11 16:47:15 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-11 20:04:26 +0000 |
commit | 2cf2cfc6ec6384231f5e996b330e88a28ca597d7 (patch) | |
tree | 9ebb6bb351095189368061af01b8e346e836590f /doop.c | |
parent | 7231552fa00684278e830b131e4c41fe58702edd (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |