summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-04-07 12:39:55 -0600
committerKarl Williamson <khw@cpan.org>2022-04-19 21:25:16 -0600
commit05319f568a01ea178854f67a8ebd68e977569c3d (patch)
tree2ab03ad9de560acee8917b31c578bcfe96b0396e /handy.h
parente97bbfdf9bb27fb8976569b4871be62c9ef0f21a (diff)
downloadperl-05319f568a01ea178854f67a8ebd68e977569c3d.tar.gz
handy.h: space isn't graph
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 3acdaf3b9d..e26399a4ea 100644
--- a/handy.h
+++ b/handy.h
@@ -2016,7 +2016,12 @@ END_EXTERN_C
# define isALPHANUMERIC_LC(c) _generic_LC(c, _CC_ALPHANUMERIC, isalnum)
# define isCNTRL_LC(c) _generic_LC(c, _CC_CNTRL, iscntrl)
# define isDIGIT_LC(c) _generic_LC(c, _CC_DIGIT, isdigit)
-# define isGRAPH_LC(c) _generic_LC(c, _CC_GRAPH, isgraph)
+# ifdef OS390 /* This system considers NBSP to be a graph */
+# define isGRAPH_LC(c) _generic_LC(c, _CC_GRAPH, isgraph) \
+ && ! isSPACE_LC(c)
+# else
+# define isGRAPH_LC(c) _generic_LC(c, _CC_GRAPH, isgraph)
+# endif
# define isIDFIRST_LC(c) _generic_LC_underscore(c, _CC_IDFIRST, isalpha)
# define isLOWER_LC(c) _generic_LC(c, _CC_LOWER, islower)
# define isPRINT_LC(c) _generic_LC(c, _CC_PRINT, isprint)