[Mesa-dev] [PATCH 2/3] configure: allow building with python3
dylan at pnwbakers.com
Fri Aug 24 18:51:08 UTC 2018
Can we just change the script to write a file instead of sending it's output
through the shell? That should fix any encoding problems since the shell wont
touch it and the LANG settings (no matter what they are) shouldn't matter.
Quoting Mathieu Bridon (2018-08-24 07:58:21)
> 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.
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 228 bytes
More information about the mesa-dev