aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index aa68bf9a..72e77a1e 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -25,7 +25,6 @@
#include "serd/serd.h"
#include <assert.h>
-#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@@ -675,7 +674,7 @@ read_IRIREF(SerdReader* reader, SerdNode** 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);