Eric Blake
39615354fc
qapi: Force UTF8 encoding when parsing qapi files
...
Commit d4e5ec877 already fixed things to work around Python 3's
lame bug of having LC_ALL=C not be 8-bit clean, when parsing the
main QMP qapi files; but failed to do likewise in the tests
directory. As a result, running 'LC_ALL=C make check' fails on
escape-too-big and unicode-str when using python 3 with a nasty
stack trace instead of the intended graceful error message that
QAPI doesn't yet support 8-bit data (the two tests contain
Unicode é, when parsed in UTF-8; they represent something
different when parsed in a proper single-byte C locale, but that
doesn't matter to the error message printed out, provided that
brain-dead Python hasn't first choked on the input instead of
being 8-bit clean).
Ideally, we'd teach the qapi generator scripts to automatically
slurp things in using UTF-8 regardless of locale, and to honor
content that is not limited to 7 bit data rather than gracefully
erroring out; but until then, since our graceful error depends
on python parsing 8-bit data (even if nothing we generate uses
8-bit data), our quick fix is to use the right locale when
running these tests.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180319205040.1113423-1-eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2018-03-23 12:29:07 -05:00
..
2018-03-20 03:34:52 +02:00
2017-07-18 05:49:01 -05:00
2018-02-22 15:44:07 -08:00
2018-03-13 01:19:56 +08:00
2015-12-17 13:37:15 +00:00
2016-02-08 17:29:54 +01:00
2017-09-22 10:46:25 +08:00
2018-03-05 09:03:17 +00:00
2018-02-14 10:26:21 +00:00
2018-03-21 15:13:40 +01:00
2018-03-19 14:58:37 -05:00
2018-03-19 14:58:36 -05:00
2017-07-11 17:45:00 +02:00
2018-01-16 14:54:52 +01:00
2018-02-08 09:23:07 +08:00
2018-03-13 18:06:06 +00:00
2016-06-07 18:19:24 +03:00
2017-03-02 07:14:27 +02:00
2018-01-16 14:54:52 +01:00
2018-03-06 14:01:27 +01:00
2016-10-26 08:29:01 -07:00
2017-09-04 10:45:19 +01:00
2017-09-04 10:45:19 +01:00
2017-09-04 10:45:19 +01:00
2018-03-20 03:34:52 +02:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:41 +01:00
2018-03-18 18:27:23 +11:00
2016-09-23 13:36:09 +02:00
2018-03-19 14:58:36 -05:00
2018-03-19 14:58:36 -05:00
2018-03-19 14:58:36 -05:00
2018-03-19 14:58:36 -05:00
2017-11-17 18:21:30 +01:00
2018-03-19 14:58:36 -05:00
2018-03-19 14:58:36 -05:00
2016-09-08 17:57:32 +04:00
2017-09-04 13:09:13 +02:00
2018-03-19 14:58:36 -05:00
2018-02-09 13:52:15 +01:00
2017-09-04 10:45:19 +01:00
2016-10-28 18:17:24 +03:00
2018-03-19 14:58:36 -05:00
2017-01-31 10:10:13 +11:00
2018-02-09 13:52:15 +01:00
2018-02-14 11:43:41 +01:00
2017-03-01 11:51:28 +04:00
2018-02-14 11:43:41 +01:00
2017-03-01 11:51:05 +04:00
2017-10-20 13:32:10 +02:00
2016-06-07 18:19:24 +03:00
2017-05-09 09:14:40 +02:00
2018-02-14 11:43:41 +01:00
2017-03-01 11:51:04 +04:00
2018-02-14 11:43:02 +01:00
2016-06-07 18:19:24 +03:00
2018-02-14 11:43:41 +01:00
2016-06-20 16:38:13 +02:00
2018-02-09 13:50:17 +01:00
2015-12-18 12:18:31 +00:00
2016-06-07 18:19:24 +03:00
2017-02-21 11:14:07 +00:00
2017-02-21 11:14:07 +00:00
2017-10-20 13:32:10 +02:00
2017-03-01 11:51:05 +04:00
2016-06-07 18:19:24 +03:00
2018-02-14 11:43:41 +01:00
2018-03-19 14:58:36 -05:00
2018-02-09 13:52:15 +01:00
2017-10-20 13:32:10 +02:00
2018-02-14 11:43:42 +01:00
2018-03-19 14:09:57 -03:00
2018-03-23 12:29:07 -05:00
2018-02-14 11:43:41 +01:00
2018-03-09 17:39:25 +00:00
2016-06-07 18:19:24 +03:00
2018-03-19 14:58:36 -05:00
2017-05-11 11:08:40 +02:00
2016-06-07 18:19:24 +03:00
2016-10-19 10:09:24 +01:00
2018-01-17 09:35:24 +11:00
2017-10-20 13:32:10 +02:00
2017-09-19 16:19:39 +02:00
2018-02-09 05:05:11 +01:00
2016-10-24 16:26:53 +01:00
2018-02-09 13:52:15 +01:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:02 +01:00
2017-10-24 13:53:41 -07:00
2018-03-23 12:28:00 -05:00
2018-03-19 14:58:36 -05:00
2018-03-12 16:12:47 +01:00
2018-02-14 11:43:41 +01:00
2017-08-01 17:27:33 +02:00
2018-02-14 11:43:02 +01:00
2018-03-06 14:01:27 +01:00
2018-03-13 18:06:06 +00:00
2018-03-13 18:06:06 +00:00
2016-10-16 12:04:15 +11:00
2018-02-14 11:43:02 +01:00
2018-02-09 13:50:17 +01:00
2017-03-14 13:28:29 +01:00
2016-10-24 16:26:54 +01:00
2016-06-07 18:19:24 +03:00
2018-03-19 12:01:24 +01:00
2017-01-10 08:49:59 -08:00
2016-06-17 15:23:51 +01:00
2018-03-02 18:39:07 +01:00
2018-03-19 12:01:39 +01:00
2018-03-19 12:01:24 +01:00
2016-09-13 19:13:32 +02:00
2018-03-19 14:58:36 -05:00
2018-02-09 13:52:15 +01:00
2018-02-08 09:22:03 +08:00
2016-03-22 22:20:15 +01:00
2017-11-08 11:03:46 +00:00
2016-12-21 14:26:26 +00:00
2016-10-19 10:23:55 +01:00
2016-12-22 09:24:59 +00:00
2016-03-22 22:20:15 +01:00
2016-09-19 16:30:45 +01:00
2016-06-13 12:41:17 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-07-04 10:46:59 +01:00
2018-03-13 18:06:05 +00:00
2017-10-20 13:32:10 +02:00
2018-02-07 14:09:25 +01:00
2018-02-10 10:44:30 +03:00
2018-03-05 10:30:15 +08:00
2016-10-26 08:29:00 -07:00
2016-02-16 14:29:27 +00:00
2017-03-01 00:09:28 +04:00
2018-02-15 16:54:57 +00:00
2018-03-13 18:06:06 +00:00
2018-03-06 10:19:07 +00:00
2018-03-06 10:19:05 +00:00
2017-09-05 22:34:40 +02:00
2018-03-19 14:58:36 -05:00
2016-08-19 12:44:11 +01:00
2016-06-07 18:19:24 +03:00
2018-02-09 13:52:15 +01:00
2017-03-22 19:24:34 +01:00
2018-02-09 05:05:11 +01:00
2017-07-17 15:41:30 -03:00
2016-08-03 18:44:56 +02:00
2018-03-09 15:17:47 +01:00
2018-03-19 14:58:36 -05:00
2016-06-16 18:39:03 +02:00
2016-10-06 18:04:13 +02:00
2018-03-19 14:58:36 -05:00
2018-03-19 14:58:36 -05:00
2018-03-19 14:58:36 -05:00
2018-03-19 14:58:36 -05:00
2016-06-07 18:19:24 +03:00
2018-02-09 13:52:16 +01:00
2017-01-31 10:10:14 +11:00
2018-02-09 13:52:15 +01:00
2018-02-10 10:45:14 +03:00
2017-02-21 11:14:07 +00:00
2017-09-05 18:12:21 +02:00
2016-06-07 18:19:24 +03:00
2018-03-13 18:06:06 +00:00
2017-12-20 22:01:24 +08:00
2018-03-02 13:45:50 -06:00
2017-09-27 11:44:18 +01:00
2016-06-07 18:19:24 +03:00
2018-03-19 14:58:36 -05:00
2016-06-07 18:19:24 +03:00
2017-05-18 18:04:54 +02:00
2018-02-14 11:43:41 +01:00
2016-06-07 18:19:24 +03:00
2018-02-21 07:24:50 -05:00
2018-02-21 07:24:50 -05:00
2018-02-21 07:24:50 -05:00
2018-02-21 07:24:50 -05:00
2018-02-14 11:43:02 +01:00
2016-06-07 18:19:24 +03:00
2018-02-14 11:43:41 +01:00
2017-09-15 09:05:18 +02:00
2018-01-16 14:54:52 +01:00
2018-02-14 11:43:41 +01:00
2018-02-14 11:43:41 +01:00
2017-10-20 13:32:10 +02:00
2018-02-14 11:43:41 +01:00
2017-10-20 13:32:10 +02:00
2018-02-14 11:43:41 +01:00
2016-10-28 09:36:58 +11:00
2018-03-12 16:12:46 +01:00
2017-10-20 13:32:10 +02:00
2018-02-14 11:43:41 +01:00
2016-06-07 18:19:24 +03:00
2018-02-14 11:43:42 +01:00