]> xenbits.xensource.com Git - libvirt.git/commit
build: force a UTF-8 locale for python
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 5 Sep 2019 15:45:27 +0000 (16:45 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 24 Sep 2019 14:46:22 +0000 (15:46 +0100)
commitada268012a03b9be83756aba2c0e14d206f5e70f
treeff3fc5b8b44e3d85e97ba01b0918ecf5f233f52d
parent851dba3f47e748c82592aa08b19d326e61ed8595
build: force a UTF-8 locale for python

Python3 versions less than 3.7 have very unhelpful handling
of the C locale where they assume data is 7-bit only. This
violates POSIX which requires the C locale to be 8-bit clean.
Python3 >= 3.7 now assumes that the C locale is always UTF-8.

Set env variables to force LC_CTYPE to en_US.UTF-8 so that
we get UTF-8 handling on all python versions. Note we do
not use C.UTF-8 since not all C libraries support that.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Makefile.am
configure.ac
docs/Makefile.am
src/esx/Makefile.inc.am
src/hyperv/Makefile.inc.am
src/util/Makefile.inc.am