diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-16 11:46:02 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-16 11:46:02 +0000 |
commit | 6ee35fb7e604a038209f7db33f1e4817a38d5c05 (patch) | |
tree | 8a1139763985e4badf445b53b49eca765abc8672 /pp.c | |
parent | 32c0e916b39148c319a03b9479ed34c7582453f3 (diff) | |
download | perl-6ee35fb7e604a038209f7db33f1e4817a38d5c05.tar.gz |
Fix for 20010407.008 sprintf removes utf8-ness.
p4raw-id: //depot/perl@11691
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2933,6 +2933,8 @@ PP(pp_sprintf) dSP; dMARK; dORIGMARK; dTARGET; do_sprintf(TARG, SP-MARK, MARK+1); TAINT_IF(SvTAINTED(TARG)); + if (DO_UTF8(*(MARK+1))) + SvUTF8_on(TARG); SP = ORIGMARK; PUSHTARG; RETURN; |