From 9c9596b4d3655aa74ebd70e7e1bde3f244713060 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 31 Mar 2020 20:06:00 -0700 Subject: [PATCH] isprint() --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 332b9c5..72dc68c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -155,7 +155,7 @@ std::ostream& operator<<(std::ostream& strm, const Escaper& esc) case '\'': next = '\''; break; case '\"': next = '\"'; break; default: - if(isprint(c)) { + if(c>=' ' && c<='~') { // isprint() strm.put(c); } else { strm<<"\\x"<