summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-06-17 17:38:41 +0100
committerDavid Mitchell <davem@iabyn.com>2013-07-28 10:33:35 +0100
commitf8a6dd2e91670031e094529649fe2380f2ee6854 (patch)
treee3fd224827446a08392ec00730e93111f14567f2 /pp_hot.c
parentf0fb0b59f464b08ce14cb154cbf940ff94b2fada (diff)
downloadperl-f8a6dd2e91670031e094529649fe2380f2ee6854.tar.gz
pp_match(): fix UTF* match setting
A recent commit did RX_MATCH_UTF8_set() based on the utf8-ness of the pattern rather than the match string. I didn't matter because in that branch they were guaranteed to have the same value, but fix it anyway, both for correctness sake, and because it it *will* matter shortly
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 4d7467d5e8..07a78938c3 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1447,7 +1447,7 @@ PP(pp_match)
/* match via INTUIT shouldn't have any captures.
* Let @-, @+, $^N know */
RX_LASTPAREN(rx) = RX_LASTCLOSEPAREN(rx) = 0;
- RX_MATCH_UTF8_set(rx, cBOOL(DO_UTF8(rx)));
+ RX_MATCH_UTF8_set(rx, cBOOL(DO_UTF8(TARG)));
if ( !(r_flags & REXEC_NOT_FIRST) )
Perl_reg_set_capture_string(aTHX_ rx,
(char*)truebase, (char *)strend,