Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-03-01 Thread Markus Armbruster
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 w

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-28 Thread Blue Swirl
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: >>> Blue Swirl writes: >>> On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: > Test cases are scraped from Markus Kuhn's UTF-8 dec

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-28 Thread Markus Armbruster
Blue Swirl writes: > On Thu, Feb 28, 2013 at 8:14 AM, Markus Armbruster wrote: >> Blue Swirl writes: >> >>> On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and stress test at http://www.cl.cam.ac.uk/~mgk

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-28 Thread Blue Swirl
On Thu, Feb 28, 2013 at 8:14 AM, Markus Armbruster wrote: > Blue Swirl writes: > >> On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: >>> Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and >>> stress test at >>> http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.tx

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-28 Thread Markus Armbruster
Blue Swirl writes: > On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: >> Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and >> stress test at >> http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt >> >> Unfortunately, both JSON parser and formatter misbehave ri

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-27 Thread Blue Swirl
On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: > Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and > stress test at > http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt > > Unfortunately, both JSON parser and formatter misbehave right now. > This test expects

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-05 Thread Markus Kuhn
On 05/02/13 07:39, Markus Armbruster wrote: Blue Swirl writes: On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and stress test at http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt There's no license. Can w

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-04 Thread Markus Armbruster
Blue Swirl writes: > On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: >> Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and >> stress test at >> http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt > > There's no license. Can we use that? It's been used widely,

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-04 Thread Blue Swirl
On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: > Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and > stress test at > http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt There's no license. Can we use that? > > Unfortunately, both JSON parser and formatter m

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-04 Thread Markus Armbruster
Paolo Bonzini writes: > Il 04/02/2013 18:19, Markus Armbruster ha scritto: >> +/* 2 Boundary condition test cases */ >> +/* 2.1 First possible sequence of a certain length */ >> +/* 2.1.5 5 bytes U+20 */ >> +{ >> +"\"\xF8\x88\x80\x80\x80\"", >> +

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-04 Thread Paolo Bonzini
Il 04/02/2013 18:19, Markus Armbruster ha scritto: > +/* 2 Boundary condition test cases */ > +/* 2.1 First possible sequence of a certain length */ > +/* 2.1.5 5 bytes U+20 */ > +{ > +"\"\xF8\x88\x80\x80\x80\"", > +NULL,

[Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-04 Thread Markus Armbruster
Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and stress test at http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt Unfortunately, both JSON parser and formatter misbehave right now. This test expects current, incorrect results. They're all clearly marked, and are to