regcomp.c: qr/[\xFF]/di doesn't have runtime dependencies
authorKarl Williamson <khw@cpan.org>
Fri, 21 Dec 2018 15:59:04 +0000 (08:59 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 25 Dec 2018 16:08:10 +0000 (09:08 -0700)
commit20fda8317523a13dd63cdafcc2a2209f13d564f8
treed0cfc9a8104eb136aa21647f67a518657194f67b
parent70efdf699a1b0b6fa493d73f244c7c25a45db011
regcomp.c: qr/[\xFF]/di doesn't have runtime dependencies

Prior to this commit, a class containing U+FF, LATIN SMALL LETTER Y WITH
DIAERESIS, generated an ANYOFD regnode because it thought that what
matched depended on the UTF-8ness of the target string.  But it doesn't.
No bugs were introduced because when ANYOFD is encountered the code
looks at some flags to determine what sorts of dependencies to further
look for, and the flags remained clear.  But ANYOFD is less desirable
than plain ANYOF, because it adds extra branches to execute.

Tests for this fix will be added in a future commit.
regcomp.c