summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-07-30 12:33:31 -0600
committerKarl Williamson <public@khwilliamson.com>2011-07-30 13:05:37 -0600
commitf2e96b5ddb6396417bc2fb71915c5025215060d6 (patch)
tree149be6f736fbd2e7953c6cc7ceff7fe91d362c94 /regexec.c
parentc973bd4f39028e70c9887cea72ea048a71347c9b (diff)
downloadperl-f2e96b5ddb6396417bc2fb71915c5025215060d6.tar.gz
/aa and \b fail under some utf8 strings
This was due to my failure to realize that this 'if' needed to be updated when the /aa modifier was added.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index d0658801bc..76c91af1f7 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3685,7 +3685,10 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
case NBOUNDU:
case NBOUNDA:
/* was last char in word? */
- if (utf8_target && FLAGS(scan) != REGEX_ASCII_RESTRICTED_CHARSET) {
+ if (utf8_target
+ && FLAGS(scan) != REGEX_ASCII_RESTRICTED_CHARSET
+ && FLAGS(scan) != REGEX_ASCII_MORE_RESTRICTED_CHARSET)
+ {
if (locinput == PL_bostr)
ln = '\n';
else {