This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix \xa0 matching both [\s] [\S], et.al.
authorKarl Williamson <public@khwilliamson.com>
Sat, 15 Jan 2011 20:42:58 +0000 (13:42 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 16 Jan 2011 15:18:54 +0000 (08:18 -0700)
commit11454c594f22abc5945e69a46fc965363dbf326e
tree8e51baaf062d5e28410294b9cac63f791c63ced2
parentf424400810b6af341e96230836690da51c37b812
Fix \xa0 matching both [\s] [\S], et.al.

This bug stemmed from Latin1 characters not matching any (non-complemented)
character class in /d semantics when the target string is no utf8; but having
unicode semantics when it isn't.  The solution here is to add a special flag.

There were several tests that relied on the broken behavior, specifically they
tested that \xff isn't a printable word character even in utf8.  I changed the
deparse test to instead use a non-printable code point, and I changed the ones
in re_tests to be TODOs, and will change them back using /a when that is
shortly added.
dist/B-Deparse/t/deparse.t
regcomp.c
regcomp.h
regexec.c
t/re/re_tests