[Mesa-dev] [PATCH 2/3] configure: allow building with python3

Mathieu Bridon bochecha at daitauha.fr
Fri Aug 24 14:58:21 UTC 2018


Hi,

On Thu, 2018-08-23 at 23:23 -0400, Ilia Mirkin wrote:
> This breaks the build for me. It selects python3 instead of python2,
> and gen_xmlpool.py bails out when trying to print \xf3 to stdout with
> a LANG=C locale.

In general though, Python 3 works very badly with LANG=C. Upstream
Python recommends just not using LANG=C at all, and instead using a
UTF8 locale, like C.UTF-8 instead.

In fact, starting with 3.7, Python will emit a big warning when it is
run on a non-UTF8 locale, and try to fallback to C.UTF-8 if it can.

There might be something to fix in this case (I haven't had time to
look at it yet), but I'd still advise you try and use a UTF8 locale
when running Python scripts in the future, if at all possible.


-- 
Mathieu



More information about the mesa-dev mailing list