[OE-core] python3: use LC_CTYPE, not LC_ALL to set utf-8

Burton, Ross ross.burton at intel.com
Mon Aug 8 20:30:45 UTC 2016


On 8 August 2016 at 18:41, Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
wrote:

> due to python3's misdesigned string handling, recent bitbake/OE enforces
> 'LC_ALL=en_US.utf-8'.  This causes a lot of problems:
>

I can confirm that this combination solves the file encoding problem:

$ export LANG=C
$ python3 -c 'import sys; print(sys.getfilesystemencoding())'
ascii
$ export LC_CTYPE=en_US.UTF-8
$ python3 -c 'import sys; print(sys.getfilesystemencoding())'
utf-8

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160808/43d03e5a/attachment-0002.html>


More information about the Openembedded-core mailing list