summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-07 19:01:08 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-07 19:01:08 +0000
commit234a4bc6763f850602ce9515d905ee1c14f004d4 (patch)
tree22fdd9e1e038d7b7b0e7be522495c7282350281b /pp_hot.c
parentac1fa8375ae1ea15a93ee4e83db6da329c197cd4 (diff)
downloadperl-234a4bc6763f850602ce9515d905ee1c14f004d4.tar.gz
stringify "\x{FFF}" to utf8 correctly; set SvUTF8 on "\x{XX}"
only when XX > 127 p4raw-id: //depot/perl@5033
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 6ef302c117..8dab65150c 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -87,6 +87,8 @@ PP(pp_stringify)
char *s;
s = SvPV(TOPs,len);
sv_setpvn(TARG,s,len);
+ if (SvUTF8(TOPs) && !IN_BYTE)
+ SvUTF8_on(TARG);
SETTARG;
RETURN;
}