Re: [Qemu-devel] [PATCH v4 29/28] qapi: Add strict mode to JSON output visitor

2016-06-03 Thread Markus Armbruster
Eric Blake writes: > Let the caller decide whether output must be strict JSON (and > raise an error on an attempt to output an encoding error or > non-finite number), vs. the status quo of relaxed (encoding > errors are rewritten to use substitute U+fffd characters, > and non-finite numbers are o

Re: [Qemu-devel] [PATCH v4 29/28] qapi: Add strict mode to JSON output visitor

2016-06-03 Thread Markus Armbruster
Eric Blake writes: > On 05/19/2016 10:52 AM, Eric Blake wrote: >> Let the caller decide whether output must be strict JSON (and >> raise an error on an attempt to output an encoding error or >> non-finite number), vs. the status quo of relaxed (encoding >> errors are rewritten to use substitute U

Re: [Qemu-devel] [PATCH v4 29/28] qapi: Add strict mode to JSON output visitor

2016-05-19 Thread Eric Blake
On 05/19/2016 10:52 AM, Eric Blake wrote: > Let the caller decide whether output must be strict JSON (and > raise an error on an attempt to output an encoding error or > non-finite number), vs. the status quo of relaxed (encoding > errors are rewritten to use substitute U+fffd characters, > and non

[Qemu-devel] [PATCH v4 29/28] qapi: Add strict mode to JSON output visitor

2016-05-19 Thread Eric Blake
Let the caller decide whether output must be strict JSON (and raise an error on an attempt to output an encoding error or non-finite number), vs. the status quo of relaxed (encoding errors are rewritten to use substitute U+fffd characters, and non-finite numbers are output). Adjust the testsuite t