Received: from eggs.gnu.org ([208.118.235.92]:50417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBSUw-0004j3-7X for qemu-devel@nongnu.org; Fri, 01 Mar 2013 11:07:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBSUv-0004Kd-3X for qemu-devel@nongnu.org; Fri, 01 Mar 2013 11:07:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBSUu-0004KX-RM for qemu-devel@nongnu.org; Fri, 01 Mar 2013 11:07:49 -0500 From: Markus Armbruster References: <1359998382-5095-1-git-send-email-armbru@redhat.com> <877glsam8v.fsf@blackfin.pond.sub.org> <87ip5cw7gl.fsf@blackfin.pond.sub.org> Date: Fri, 01 Mar 2013 17:07:41 +0100 In-Reply-To: (Blue Swirl's message of "Thu, 28 Feb 2013 20:06:01 +0000") Message-ID: <87zjynnlwy.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: aliguori@us.ibm.com, mgk25@cl.cam.ac.uk, qemu-devel@nongnu.org, lcapitulino@redhat.com Blue Swirl writes: > On Thu, Feb 28, 2013 at 7:42 PM, Markus Armbruster wrote: >> Blue Swirl writes: >> >>> On Thu, Feb 28, 2013 at 8:14 AM, Markus Armbruster wrote: [...] >>>> Looks like the JSON formatter is not just broken (we knew that already), >>>> it's broken in machine-dependent ways. Good to know, thanks for >>>> reporting. >>>> >>>> Obvious ways to get "make check" pass for you again *now*: >>>> >>>> * Disable check-qjson. That's too big a hammer for me. >>>> >>>> * Disable test case 2.1.4 with a comment explaining why. >>>> >>>> * Suitable #ifdeffery around the expected value. >>>> >>>> Preferences? >>> >>> * Fix JSON formatter :-) >> >> I want that too, but I'm afraid we can't have it *now* :) >> >>> Disabling 2.1.4 only reveals the next problem: >>> GTESTER tests/check-qjson >>> GTester: last random seed: R02S6754f3523201dc81bb21de42e2ba843c >>> ** >>> ERROR:/src/qemu/tests/check-qjson.c:777:utf8_string: assertion failed >>> (qstring_get_str(str) == json_out): ("\"\\u8200\200\200\"" == >>> "\"\\u8200\\uFFFF\\uFFFF\"") >> >> All right, I give up. I can't fix to_json() tonight (I have maybe 30 >> minutes of usable brain left), but I can make it portably wrong. Please >> try the appended patch. > > GTESTER tests/check-qjson > GTester: last random seed: R02Scc9b8a0a880770aaee720c8f98cc953d > ** > ERROR:/src/qemu/tests/check-qjson.c:775:utf8_string: assertion failed > (qstring_get_str(str) == json_out): ("\"\\u0400\200\"" == > "\"\\u0400\\uFFFF\"") Working on a real fix, please be patient.