From 353b92d13d3ab6276998239c827287151e16bc8d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 Nov 2020 11:47:36 +0100 Subject: Remove use of C character class functions that may use locale Some of these cause warnings, and should never have been used in the first place since they depend on locale. --- src/n3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/n3.c') diff --git a/src/n3.c b/src/n3.c index 2e85ea66..f2c42081 100644 --- a/src/n3.c +++ b/src/n3.c @@ -24,7 +24,6 @@ #include "serd/serd.h" #include -#include #include #include #include @@ -714,7 +713,7 @@ read_IRIREF(SerdReader* reader, Ref* dest) break; default: if (c <= 0x20) { - if (isprint(c)) { + if (is_print(c)) { r_err(reader, SERD_ERR_BAD_SYNTAX, "invalid IRI character `%c' (escape %%%02X)\n", c, (unsigned)c); -- cgit v1.2.1