summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorJohn Peacock <jpeacock@rowman.com>2002-02-24 11:40:07 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-24 23:33:33 +0000
commit6050d10e6008e3d6e86de76c85d93bf5c06336aa (patch)
tree22abf8721e11d3eb865e04fca86b40c8137fae35 /pp_hot.c
parent4a623e436d71abaaa4d1ebda0aec183af7a6eb53 (diff)
downloadperl-6050d10e6008e3d6e86de76c85d93bf5c06336aa.tar.gz
Re: Copying PV only with possible UTF-8 characters
Message-ID: <3C795DB7.40105@rowman.com> p4raw-id: //depot/perl@14857
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 1d2dffa592..516212d7d3 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -72,14 +72,7 @@ PP(pp_pushmark)
PP(pp_stringify)
{
dSP; dTARGET;
- STRLEN len;
- char *s;
- s = SvPV(TOPs,len);
- sv_setpvn(TARG,s,len);
- if (SvUTF8(TOPs))
- SvUTF8_on(TARG);
- else
- SvUTF8_off(TARG);
+ sv_copypv(TARG,TOPs);
SETTARG;
RETURN;
}