summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-20 13:59:58 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-20 13:59:58 +0000
commit33b8afdf5cd7f66238db46e095c6effe7bebe9ee (patch)
tree4708cd5f7fcc68c5cc6584c05a825f6c168c901e /sv.c
parent6d5328bc15982a12e4db34e42922fa0ff551ed7c (diff)
downloadperl-33b8afdf5cd7f66238db46e095c6effe7bebe9ee.tar.gz
Fix for "UTF-8 bug with s///" from Hugo.
p4raw-id: //depot/perl@15356
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index ac4090052c..21de7ed654 100644
--- a/sv.c
+++ b/sv.c
@@ -8592,6 +8592,7 @@ Perl_re_dup(pTHX_ REGEXP *r, CLONE_PARAMS *param)
s->min_offset = r->substrs->data[i].min_offset;
s->max_offset = r->substrs->data[i].max_offset;
s->substr = sv_dup_inc(r->substrs->data[i].substr, param);
+ s->utf8_substr = sv_dup_inc(r->substrs->data[i].utf8_substr, param);
}
ret->regstclass = NULL;