Introduction
Introduction Statistics Contact Development Disclaimer Help
allow 0x7f (DEL) inside strings (allowed in the RFC) - json2tsv - JSON to TSV c…
git clone git://git.codemadness.org/json2tsv
Log
Files
Refs
README
LICENSE
---
commit 216c4f342f22413073cfa9a98cb069b93eb0ecb4
parent 03e5cd467dd7219175dc25fe821cea5e6d2a5520
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 15 Oct 2019 18:49:17 +0200
allow 0x7f (DEL) inside strings (allowed in the RFC)
Diffstat:
M json2tsv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/json2tsv.c b/json2tsv.c
@@ -150,7 +150,8 @@ parsejson(void (*cb)(struct json_node *, size_t, const char…
v = 0;
nodes[depth].type = TYPE_STRING;
for (escape = 0; (c = GETNEXT()) != EOF;) {
- if (iscntrl(c))
+ /* 0x7f is not defined as a control-character …
+ if (c < 0x20)
continue;
if (escape) {
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.