diff options
author | Rostislav Skudnov <skrostislav@gmail.com> | 2014-12-24 08:12:52 +0200 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2015-01-13 14:50:52 +0000 |
commit | 9ce1a4d5ec32720328a5dce6ee796ce4b79d6faf (patch) | |
tree | 309cec260dfb2798797fe74db28a821592cd4e63 /AUTHORS | |
parent | 162b417c061ec9190135629d421e3685e8d31dc0 (diff) | |
download | perl-9ce1a4d5ec32720328a5dce6ee796ce4b79d6faf.tar.gz |
make re_intuit_string() return correct string
Fix #123469 - Bug in split function, with utf8 strings
Each regex has two SV pointers, check_substr and check_utf8,
which hold a constant string (if any) corresponding to the longest
constant string in the regexp.
When the regex is first compiled, only one pointer is set, depending on
whether the pattern is utf8 or not; but subsequent usage of the regex can
instantiate the other pointer too. So which of the two strings
re_intuit_string() should return should be based on the UTF8ness of the
pattern, not whether check_substr is set.
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions