From: Karl Williamson Date: Mon, 3 Dec 2012 05:17:27 +0000 (-0700) Subject: handy.h: Fix isBLANK_LC_uni() X-Git-Tag: upstream/5.20.0~4545^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36b00f93e6f26e54cbdf0c63541c312cf1f34642;p=platform%2Fupstream%2Fperl.git 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. --- 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.