summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-03-19 20:35:57 +0000
committerDavid Mitchell <davem@iabyn.com>2015-03-30 12:05:23 +0100
commit2782061f5102a81e1eae39cce864ce172fbea63d (patch)
tree2cedd6da70fe22fdcd3ff1ffc740e1114723ca24 /sv.c
parent7c6e85ad045c7a9841bf1c62d1dd22bf1705a168 (diff)
downloadperl-2782061f5102a81e1eae39cce864ce172fbea63d.tar.gz
Revert "Don’t call save_re_context"
This reverts commit d28a9254e445aee7212523d9a7ff62ae0a743fec. Turns out we need save_re_context() after all
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 4a818f2a1c..467dc245e9 100644
--- a/sv.c
+++ b/sv.c
@@ -15286,6 +15286,7 @@ Perl_sv_recode_to_utf8(pTHX_ SV *sv, SV *encoding)
nsv = sv_newmortal();
SvSetSV_nosteal(nsv, sv);
}
+ save_re_context();
PUSHMARK(sp);
EXTEND(SP, 3);
PUSHs(encoding);
@@ -15356,6 +15357,7 @@ Perl_sv_cat_decode(pTHX_ SV *dsv, SV *encoding,
dSP;
ENTER;
SAVETMPS;
+ save_re_context();
PUSHMARK(sp);
EXTEND(SP, 6);
PUSHs(encoding);