All of lore.kernel.org
 help / color / mirror / Atom feed
* correct approach to set up utf-8 locales?
@ 2017-07-21  6:50 Florian Doersch
  2017-07-21 13:08 ` Joshua Watt
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Doersch @ 2017-07-21  6:50 UTC (permalink / raw)
  To: yocto

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: correct approach to set up utf-8 locales?
  2017-07-21  6:50 correct approach to set up utf-8 locales? Florian Doersch
@ 2017-07-21 13:08 ` Joshua Watt
  0 siblings, 0 replies; 2+ messages in thread
From: Joshua Watt @ 2017-07-21 13:08 UTC (permalink / raw)
  To: Florian Doersch, yocto

On Fri, 2017-07-21 at 08:50 +0200, Florian Doersch wrote:
> 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 ...)

I noticed something similar while trying to get locale.aliases to work
(see https://bugzilla.yoctoproject.org/show_bug.cgi?id=11815). I don't
know why the .utf8 suffixes to do not appear, but it might be related
(perhaps some configuration in glibc is incorrect?). Based on a little
bit of testing I did, I think that the utf8 locale might be present as
you can do setlocale(LC_ALL, "de_DE.utf8") in C and it should work (you
might want to check this yourself). Perhaps the locale program just
isn't showing it?


> 
> but its still unset:
> 
> $ locale
> always outputs "POSIX"

I think you would need to set $LANG to actually change the language,
i.e.

$ LANG="de_DE.UTF8" locale

> 
> 
> 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-21 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-21  6:50 correct approach to set up utf-8 locales? Florian Doersch
2017-07-21 13:08 ` Joshua Watt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.