diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-22 02:47:08 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-22 02:47:08 +0000 |
commit | a5961de5f4215b5cd376e88c8c5d267c7f7123f6 (patch) | |
tree | 84f55358517d319d1b067b05c90e7034e1e4a29e /regexec.c | |
parent | 96c57f7e641f15cc924272c2d866750e62c1b955 (diff) | |
download | perl-a5961de5f4215b5cd376e88c8c5d267c7f7123f6.tar.gz |
Unicode casefolding fixes.
p4raw-id: //depot/perl@13843
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4110,9 +4110,12 @@ S_reginclass(pTHX_ register regnode *n, register U8* p, register bool do_utf8) match = TRUE; else if (flags & ANYOF_FOLD) { STRLEN ulen; - U8 tmpbuf[UTF8_MAXLEN_UCLC+1]; + U8 tmpbuf[UTF8_MAXLEN_FOLD+1]; - toLOWER_utf8(p, tmpbuf, &ulen); + to_utf8_fold(p, tmpbuf, &ulen); + if (swash_fetch(sw, tmpbuf, do_utf8)) + match = TRUE; + to_utf8_upper(p, tmpbuf, &ulen); if (swash_fetch(sw, tmpbuf, do_utf8)) match = TRUE; } |