This should unbreak "make check" on machines where char is unsigned. Blue, please give it a whirl.
The JSON parser is still as broken as ever. Left for another day. v2: - Rebased, trivial conflicts in PATCH 1/4. - Make mod_utf8_codepoint() treat empty input as invalid sequence of length zero (both when n==0 and when n>0 && *s==0). No code in this series passes empty input. - Some commit messages and comments improved. Markus Armbruster (4): unicode: New mod_utf8_codepoint() check-qjson: Improve a few comments, delete bogus ones check-qjson: Test noncharacters other than U+FFFE, U+FFFF in strings qjson: to_json() case QTYPE_QSTRING is buggy, rewrite include/qemu-common.h | 3 + qobject/qjson.c | 102 ++++++++--------- tests/check-qjson.c | 308 ++++++++++++++++++++++++++++++-------------------- util/Makefile.objs | 2 +- util/unicode.c | 100 ++++++++++++++++ 5 files changed, 333 insertions(+), 182 deletions(-) create mode 100644 util/unicode.c -- 1.7.11.7