summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-19 10:11:58 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-19 11:47:41 -0700
commite074b0e508bc39eeecd7253e65329aeb4df5c5ee (patch)
tree729f4d395db61a401e8aeb9f46dd52385521ced5 /regcomp.c
parent679d1424471caed24305e9b98370c4c456020fd2 (diff)
downloadperl-e074b0e508bc39eeecd7253e65329aeb4df5c5ee.tar.gz
regcomp.c: no sharp ss tricky fold under locale
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index d3e4bcde0d..61d8f828a2 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -7727,11 +7727,13 @@ S_reg_namedseq(pTHX_ RExC_state_t *pRExC_state, UV *valuep, I32 *flagp)
vFAIL("Invalid hexadecimal number in \\N{U+...}");
}
+ /* XXX ? Change to ANYOF node
if (FOLD
- && (cp > 255 || ! MORE_ASCII_RESTRICTED)
+ && (cp > 255 || (! MORE_ASCII_RESTRICTED && ! LOC))
&& is_TRICKYFOLD_cp(cp))
{
}
+ */
/* Under /aa, we can't mix ASCII with non- in a fold. If we are
* folding, and the source isn't ASCII, look through all the
@@ -8684,7 +8686,7 @@ tryagain:
* putting it in a special node keeps regexec from having to
* deal with a non-utf8 multi-char fold */
if (FOLD
- && (ender > 255 || ! MORE_ASCII_RESTRICTED)
+ && (ender > 255 || (! MORE_ASCII_RESTRICTED && ! LOC))
&& is_TRICKYFOLD_cp(ender))
{
/* If is in middle of outputting characters into an