From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQK26-0005km-1O for qemu-devel@nongnu.org; Thu, 11 Apr 2013 12:07:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQK21-0002f4-EL for qemu-devel@nongnu.org; Thu, 11 Apr 2013 12:07:29 -0400 Received: from oxygen.pond.sub.org ([2a01:4f8:121:10e4::3]:47941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQK21-0002eY-6M for qemu-devel@nongnu.org; Thu, 11 Apr 2013 12:07:25 -0400 From: Markus Armbruster Date: Thu, 11 Apr 2013 18:07:17 +0200 Message-Id: <1365696441-10696-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] Fix JSON string formatter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, aliguori@us.ibm.com, lersek@redhat.com 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