summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-06-01 12:52:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-06-01 12:52:02 +0000
commit53fe373b05b06f68094ed67e5c78b4dda7f0d5b8 (patch)
tree916d54741a1c784c238e29c8b519f79e64a6a5a7 /doop.c
parente708dd94d433419cc9415d9e2faa486ad23ac459 (diff)
parent4ebbc97598d793d933009eab4334e3bc88b8de4e (diff)
downloadperl-53fe373b05b06f68094ed67e5c78b4dda7f0d5b8.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@6192
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index c79b435171..37f87e69df 100644
--- a/doop.c
+++ b/doop.c
@@ -592,7 +592,8 @@ Perl_do_trans(pTHX_ SV *sv)
return 0;
if (!SvPOKp(sv))
(void)SvPV_force(sv, len);
- (void)SvPOK_only(sv);
+ if (!(PL_op->op_private & OPpTRANS_IDENTICAL))
+ (void)SvPOK_only_UTF8(sv);
DEBUG_t( Perl_deb(aTHX_ "2.TBL\n"));
@@ -694,6 +695,7 @@ Perl_do_sprintf(pTHX_ SV *sv, I32 len, SV **sarg)
SvTAINTED_on(sv);
}
+/* XXX SvUTF8 support missing! */
UV
Perl_do_vecget(pTHX_ SV *sv, I32 offset, I32 size)
{
@@ -826,6 +828,7 @@ Perl_do_vecget(pTHX_ SV *sv, I32 offset, I32 size)
return retnum;
}
+/* XXX SvUTF8 support missing! */
void
Perl_do_vecset(pTHX_ SV *sv)
{
@@ -841,6 +844,7 @@ Perl_do_vecset(pTHX_ SV *sv)
if (!targ)
return;
s = (unsigned char*)SvPV_force(targ, targlen);
+ (void)SvPOK_only(targ);
lval = SvUV(sv);
offset = LvTARGOFF(sv);
size = LvTARGLEN(sv);