summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-07-08 11:37:24 -0600
committerKarl Williamson <public@khwilliamson.com>2012-07-08 16:21:04 -0600
commitbce3d7a428b0a811f0327402e049fd428886eaae (patch)
tree59dc029a8f44802ec8976b7b46a9ce0bfa886fea /handy.h
parentc220e1a11e00efe060ea99925553cb1e03e3363a (diff)
downloadperl-bce3d7a428b0a811f0327402e049fd428886eaae.tar.gz
handy.h: Fix broken is_ASCII_utf8()
Tests to follow in a future commit.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 91ac2bf4ef..2205742bb5 100644
--- a/handy.h
+++ b/handy.h
@@ -991,7 +991,7 @@ EXTCONST U32 PL_charclass[];
#define isUPPER_utf8(p) generic_utf8(isUPPER, is_utf8_upper, p)
#define isLOWER_utf8(p) generic_utf8(isLOWER, is_utf8_lower, p)
/* Because ASCII is invariant under utf8, the non-utf8 macro works */
-#define isASCII_utf8(p) isASCII(p)
+#define isASCII_utf8(p) isASCII(*p)
#define isCNTRL_utf8(p) generic_utf8(isCNTRL, is_utf8_cntrl, p)
#define isGRAPH_utf8(p) generic_utf8(isGRAPH, is_utf8_graph, p)
#define isPRINT_utf8(p) generic_utf8(isPRINT, is_utf8_print, p)