summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-02-05 15:36:08 -0700
committerKarl Williamson <public@khwilliamson.com>2012-02-09 10:13:59 -0700
commit67addccf238c3d67d84f7dc1f5b4a2e791bf68da (patch)
tree2d2735f5a0e41ec9baa00395f18f1334965a726a /regexec.c
parent07315176ac6b656ebc6d789680513408aaa17075 (diff)
downloadperl-67addccf238c3d67d84f7dc1f5b4a2e791bf68da.tar.gz
Allow [[:blank:]] to work under locale
This takes advantage of the recently added Configure probe, and if the platform has an isblank library function, calls that under locale. This now matches the documentation
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 81c5f1a64b..76eb7f9bed 100644
--- a/regexec.c
+++ b/regexec.c
@@ -6705,8 +6705,8 @@ S_reginclass(pTHX_ const regexp * const prog, register const regnode * const n,
(ANYOF_CLASS_TEST(n, ANYOF_NXDIGIT) && !isXDIGIT(c)) ||
(ANYOF_CLASS_TEST(n, ANYOF_PSXSPC) && isPSXSPC(c)) ||
(ANYOF_CLASS_TEST(n, ANYOF_NPSXSPC) && !isPSXSPC(c)) ||
- (ANYOF_CLASS_TEST(n, ANYOF_BLANK) && isBLANK(c)) ||
- (ANYOF_CLASS_TEST(n, ANYOF_NBLANK) && !isBLANK(c))
+ (ANYOF_CLASS_TEST(n, ANYOF_BLANK) && isBLANK_LC(c)) ||
+ (ANYOF_CLASS_TEST(n, ANYOF_NBLANK) && !isBLANK_LC(c))
) /* How's that for a conditional? */
) {
match = TRUE;