From ce0d9ca3db888c5a57aea0ad594b4545ad905c0e Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 14 Oct 2007 10:23:54 +0000 Subject: [PATCH] Back out iswascii change from prev. commit, iswascii was right, some overlook from me. --- include/wctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wctype.h b/include/wctype.h index 31f401ff76e6..098045fa11a5 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -106,7 +106,7 @@ __END_DECLS #define towupper(wc) __toupper(wc) #if __BSD_VISIBLE -#define iswascii(wc) ((wc) < 0x80) +#define iswascii(wc) (((wc) & ~0x7F) == 0) #define iswhexnumber(wc) __istype((wc), _CTYPE_X) #define iswideogram(wc) __istype((wc), _CTYPE_I) #define iswnumber(wc) __istype((wc), _CTYPE_D)