regexec.c: Fix locale and \s
authorKarl Williamson <public@khwilliamson.com>
Mon, 6 Dec 2010 19:16:24 +0000 (12:16 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 8 Dec 2010 02:52:43 +0000 (18:52 -0800)
commit6bbba9040c7840209170b2ff9a1d7b03ae1cbdc1
tree787e26318fb1eec1e83be40c6d370239f6b3b2f8
parentb77393f6288f64bf00f41fef15da0fac4085bfd2
regexec.c: Fix locale and \s

The handling for locale \s and \S both assume that the character in
ASCII platforms at 0x20 is a space.  This is not necessarily so.

I'm guessing that the code was originally just copied and pasted from
the non-locale space handling code without thinking.  That code hard-coded
in the space character, probably to avoid an expensive swash fetch for a
common situation.
regexec.c