From 36b00f93e6f26e54cbdf0c63541c312cf1f34642 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 2 Dec 2012 22:17:27 -0700 Subject: [PATCH] handy.h: Fix isBLANK_LC_uni() 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handy.h b/handy.h index ef63cd8..1022c01 100644 --- 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. -- 2.7.4