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
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;