aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-13 11:47:36 +0100
committerDavid Robillard <d@drobilla.net>2020-11-13 12:53:18 +0100
commit353b92d13d3ab6276998239c827287151e16bc8d (patch)
treea655eb89d8ccc1d90fe393c09c26b67a2dcc54f5 /src/n3.c
parent3558d21c9239c3eb43a2229e1fbfd45dbd2a56ef (diff)
downloadserd-353b92d13d3ab6276998239c827287151e16bc8d.tar.gz
serd-353b92d13d3ab6276998239c827287151e16bc8d.tar.bz2
serd-353b92d13d3ab6276998239c827287151e16bc8d.zip
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.
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 2e85ea66..f2c42081 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -24,7 +24,6 @@
#include "serd/serd.h"
#include <assert.h>
-#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@@ -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);