summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-12 20:28:17 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-14 08:41:39 -0700
commit2f65c56d068b1e40e3e6c15d735b4e313ea98d4f (patch)
tree725cb7d522e6ba2c3dbfeec28dc991966a1950e2 /regexec.c
parentf68792c6f49acd33f6789daeb3742005219b5f27 (diff)
downloadperl-2f65c56d068b1e40e3e6c15d735b4e313ea98d4f.tar.gz
regexec.c: Handle sharp s in middle of backref
This code handled some of the case of the LATIN SMALL LETTER SHARP S at the beginning of a back ref, but not in the middle. To do it easily, just call the function that handles our full Unicode folding
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/regexec.c b/regexec.c
index cf8a68f7cd..1b608a176f 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4104,10 +4104,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
s = PL_bostr + ln;
if (type != REF /* REF can do byte comparison */
- && (utf8_target
- || (type == REFFU
- && (*s == (char) LATIN_SMALL_LETTER_SHARP_S
- || *locinput == (char) LATIN_SMALL_LETTER_SHARP_S))))
+ && (utf8_target || type == REFFU))
{ /* XXX handle REFFL better */
char * limit = PL_regeol;