[yocto] correct approach to set up utf-8 locales?

Florian Doersch florian.doersch at iis.fraunhofer.de
Thu Jul 20 23:50:54 PDT 2017


Hi,

I recently trying to set up a raspberry pi with yocto.
The basic image with meta-raspberrypi works, but I cant get locales 
working correctly. I always only have "posix" keyboard.

I tried setting

GLIBC_GENERATE_LOCALES="de_DE.UTF-8"
IMAGE_LINGUAS="de-de"

I also installed the packages

glibc-utils locales localedef

into my image, but that seems not to change anything.

$ locale -a

does have a "de_DE" (but not the UTF-8 one ...)

but its still unset:

$ locale

always outputs "POSIX"

Also the (usb) keyboard layout does not change.

What do I have to set so the getty has the correct default language?

I also have yocto on a zynq board, where I also can't figure out how to 
set the correct locale.

Thank you very much

Florian



More information about the yocto mailing list