From 08d8fd2767733d893380ebf5c8a4743dd371528d Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 28 Feb 2019 21:10:57 -0500 Subject: fix ctype functions in the C/POSIX locale --- src/ctype/isprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ctype/isprint.c') diff --git a/src/ctype/isprint.c b/src/ctype/isprint.c index 19847118..41ed6bcf 100644 --- a/src/ctype/isprint.c +++ b/src/ctype/isprint.c @@ -14,7 +14,7 @@ int isprint(int c) RETURN(0, ARGUMENT(c) is not a printable character); */ - return map[c] & ~CT_SPACE || c == ' '; + return map[c] & CT_PRINT; } /*** -- cgit v1.2.1