From e683f611f19eb1b32bb68c553efc370f9cadc19d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 24 Jan 2019 17:22:19 +0100 Subject: [PATCH] LibC: Fix broken isprint(). I had misunderstood what's considered printable. --- LibC/ctype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibC/ctype.cpp b/LibC/ctype.cpp index 273260d01a..a443db80cd 100644 --- a/LibC/ctype.cpp +++ b/LibC/ctype.cpp @@ -9,7 +9,7 @@ int ispunct(int c) int isprint(int c) { - return isdigit(c) || isupper(c) || islower(c) || ispunct(c) || isspace(c); + return c >= 0x20 && c != 0x7f; } int isalnum(int c)