Re: [Qemu-devel] [PATCH v4 07/13] qapi: force a UTF-8 locale for running Python

2018-01-15 Thread Daniel P. Berrange
On Mon, Jan 15, 2018 at 11:15:01AM -0600, Eric Blake wrote: > On 01/15/2018 11:02 AM, Daniel P. Berrange wrote: > > Python2 did not validate locale correctness when reading input data, so > > would happily read UTF-8 data in non-UTF-8 locales. Python3 is strict so > > if you try to read UTF-8 data

Re: [Qemu-devel] [PATCH v4 07/13] qapi: force a UTF-8 locale for running Python

2018-01-15 Thread Eric Blake
On 01/15/2018 11:02 AM, Daniel P. Berrange wrote: > Python2 did not validate locale correctness when reading input data, so > would happily read UTF-8 data in non-UTF-8 locales. Python3 is strict so > if you try to read UTF-8 data in the C locale, it will raise an error > for any UTF-8 bytes that a

[Qemu-devel] [PATCH v4 07/13] qapi: force a UTF-8 locale for running Python

2018-01-15 Thread Daniel P. Berrange
Python2 did not validate locale correctness when reading input data, so would happily read UTF-8 data in non-UTF-8 locales. Python3 is strict so if you try to read UTF-8 data in the C locale, it will raise an error for any UTF-8 bytes that aren't representable in 7-bit ascii encoding. e.g. Unicode