handy.h: Fix isBLANK_LC_uni()
authorKarl Williamson <public@khwilliamson.com>
Mon, 3 Dec 2012 05:17:27 +0000 (22:17 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 9 Dec 2012 17:30:01 +0000 (10:30 -0700)
This macro can be defined in terms of the foo_uvchr() version.  It
should be correct on platforms that have an isblank() function in the C
library.  I don't know why this macro exists.  It doesn't correspond to
any of the other ones (though a recent commit removed one it did
correspond to, but which can't have been in use because it expanded to a
non-existent function).  I'm leaving it in just for back compat.  I did
not add tests for this macro.

handy.h

diff --git a/handy.h b/handy.h
index ef63cd8..1022c01 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -1003,7 +1003,7 @@ EXTCONST U32 PL_charclass[];
 /* space is identical to posix space under locale */
 #define isPSXSPC_LC_uvchr(c) isSPACE_LC_uvchr(c)
 
-#define isBLANK_LC_uni(c)      isBLANK(c) /* could be wrong */
+#define isBLANK_LC_uni(c)      isBLANK_LC_uvchr(UNI_TO_NATIVE(c))
 
 /* For internal core Perl use only.  If the input is in the Latin1 range, use
  * the Latin1 macro 'classnum' on 'p' which is a pointer to a UTF-8 string.