gmacario / easy-build

Collection of Dockerfiles for building embedded software distributions
Mozilla Public License 2.0
154 stars 83 forks source link

Fix error: Please use a locale setting which supports utf-8 #260

Closed zzeroo closed 7 years ago

zzeroo commented 7 years ago

This should fix https://github.com/gmacario/easy-build/issues/256

The yocto master print's out that error while using bitbake:

Please use a locale setting which supports utf-8.
Python can't change the filesystem locale after loading so we need a
utf-8 when python starts or things won't work.
gmacario commented 7 years ago

Hi @zzeroo ,

Thanks for your Pull Request. That seems like a valid approach, however it would work only for user build.

This Docker image can also be used as a Jenkins agent when run as user 1000.

How about setting the envvars systemwide, i.e. on /etc/profile instead?

zzeroo commented 7 years ago

@gmacario I think I've found a better solution.

I inject the locales via ENV now. So that they are not only available to the user build, but also to all other users e.g. jenkins, you mentioned.

gunnarx commented 7 years ago

+1 See comments on #261

gmacario commented 7 years ago

Thanks a lot!