From 91087d9199d6d6feffae8194118156c5b481db72 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 24 Oct 2015 16:05:19 +0200 Subject: [PATCH] Fix iswgraph unicode support. --- libc/wctype/iswgraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/wctype/iswgraph.cpp b/libc/wctype/iswgraph.cpp index e18c4c84..9795f252 100644 --- a/libc/wctype/iswgraph.cpp +++ b/libc/wctype/iswgraph.cpp @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2011, 2012. + Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2015. This file is part of the Sortix C Library. @@ -26,5 +26,5 @@ extern "C" int iswgraph(wint_t c) { - return L'!' <= c && c <= L'~'; + return L'!' <= c && c != 127; }