From: Joshua Watt <jpewhacker@gmail.com>
To: Florian Doersch <florian.doersch@iis.fraunhofer.de>,
yocto@yoctoproject.org
Subject: Re: correct approach to set up utf-8 locales?
Date: Fri, 21 Jul 2017 08:08:33 -0500 [thread overview]
Message-ID: <1500642513.30630.1.camel@gmail.com> (raw)
In-Reply-To: <5971A44E.9090106@iis.fraunhofer.de>
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
prev parent reply other threads:[~2017-07-21 13:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 6:50 correct approach to set up utf-8 locales? Florian Doersch
2017-07-21 13:08 ` Joshua Watt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1500642513.30630.1.camel@gmail.com \
--to=jpewhacker@gmail.com \
--cc=florian.doersch@iis.fraunhofer.de \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.