diff options
| author | grunfink <grunfink@comam.es> | 2026-06-25 18:36:11 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-06-25 18:36:16 +0200 |
| commit | ec2c5c2046e0381bc942ec5d0d05ec861fe377e7 (patch) | |
| tree | c27bd2b58c918756065560f9e4c7347e557ad70c | |
| parent | 04daf694a17f0c3b9462b0b4483674f62ef3819f (diff) | |
Fixed JSON parser to correctly convert u0000 to the Unicode representation.
| -rw-r--r-- | xs_json.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -281,7 +281,7 @@ static xs_val *_xs_json_load_lexer(FILE *f, js_type *t) } /* replace dangerous control codes with their visual representations */ - if (cp < ' ' && !strchr("\r\n\t", cp)) + if (cp == 0 || (cp < ' ' && !strchr("\r\n\t", cp))) cp += 0x2400; break; |