summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-04 18:09:38 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-04 18:09:38 +0000
commitcce850e4f65d092b5704ab42116f11f5188dd74e (patch)
tree86420e16cde9c0ee15805f5242bff7029ae0921c /pp_hot.c
parent01485f8b60f6cb9da6ceaaafc3abd52c6f690081 (diff)
downloadperl-cce850e4f65d092b5704ab42116f11f5188dd74e.tar.gz
Continuation of #11575: SANY_SEEN completely deprecated,
plus more tests that unearthed a bug in @a = ($utf8 =~ /\C/g), plus a fix for the bug. p4raw-id: //depot/perl@11577
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 9d51b1e3e3..daa1aeed3a 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1328,7 +1328,7 @@ play_it_again:
len = rx->endp[i] - rx->startp[i];
s = rx->startp[i] + truebase;
sv_setpvn(*SP, s, len);
- if (DO_UTF8(TARG))
+ if (DO_UTF8(TARG) && is_utf8_string((U8*)s, len))
SvUTF8_on(*SP);
}
}