diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-02-04 17:54:01 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-02-09 10:13:59 -0700 |
commit | 07315176ac6b656ebc6d789680513408aaa17075 (patch) | |
tree | 881644add91b0ca6f3869bd77c42eddd27c8be5e /regexec.c | |
parent | f905da72477ede522be53c2e945a47d46ea80a82 (diff) | |
download | perl-07315176ac6b656ebc6d789680513408aaa17075.tar.gz |
Use system isascii() when available under locale
We have code that assumes that ASCII should be locale dependent, but it
was missing its final link. This supplies that, and makes the code work
as documented. I thought it better to do that then to document yet
another exception.
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6687,8 +6687,8 @@ S_reginclass(pTHX_ const regexp * const prog, register const regnode * const n, (ANYOF_CLASS_TEST(n, ANYOF_NALNUMC) && !isALNUMC_LC(c)) || (ANYOF_CLASS_TEST(n, ANYOF_ALPHA) && isALPHA_LC(c)) || (ANYOF_CLASS_TEST(n, ANYOF_NALPHA) && !isALPHA_LC(c)) || - (ANYOF_CLASS_TEST(n, ANYOF_ASCII) && isASCII(c)) || - (ANYOF_CLASS_TEST(n, ANYOF_NASCII) && !isASCII(c)) || + (ANYOF_CLASS_TEST(n, ANYOF_ASCII) && isASCII_LC(c)) || + (ANYOF_CLASS_TEST(n, ANYOF_NASCII) && !isASCII_LC(c)) || (ANYOF_CLASS_TEST(n, ANYOF_CNTRL) && isCNTRL_LC(c)) || (ANYOF_CLASS_TEST(n, ANYOF_NCNTRL) && !isCNTRL_LC(c)) || (ANYOF_CLASS_TEST(n, ANYOF_GRAPH) && isGRAPH_LC(c)) || |