Hello yocto mailing list.

I'm having troubles trying to setup a Yocto image with full support to
English and Spanish languages (Spanish as default).

The testing image I am building is based on the rocko branch, and my distro
is "systemd" based.

My current distro.conf yocto setup is this:

    GLIBC_GENERATE_LOCALES ?= "es_ES.UTF-8 en_US.UTF-8"
    IMAGE_LINGUAS ?= "es-es en-us"

With this setup I am getting an image with this locale settings:

    # locale
    LANG=
    LC_CTYPE="POSIX"
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=

    # localectl
   System Locale: n/a
       VC Keymap: ES
      X11 Layout: es
       X11 Model: pc105
     X11 Options: terminate:ctrl_alt_bksp

    # locale -a
    C
    POSIX
    en_US
    es_ES

    # locale -m
    ES

    # locale charmap
    ANSI_X3.4-1968

    # rpm -qa | grep charmap
    glibc-charmap-es-2.26-r0.corei7_64

The image built with that setup doesn't work as expected. When I press Ñ
(enye) key on the ssh console, I get this:

    root@hostname:~#
    (arg: 1)

As you can see, 'ñ' character is not printed on the console.

After a lot of tests, I have been able to fix this creating these two files:


    $ cat /etc/locale.conf
    LANG=es_ES.UTF-8
    LANGUAGE=es:en

    $ cat /etc/profile.d/locale.sh
    LC_ALL=es_ES
    LANG=es_ES
    LANGUAGE=es_ES

After rebooting, I get this localectl settings:

    # localectl
   System Locale: LANG=es_ES.UTF-8
                  LANGUAGE=es:en
       VC Keymap: ES
      X11 Layout: es
       X11 Model: pc105
     X11 Options: terminate:ctrl_alt_bksp

And the 'Ñ' key works as expected:

    root@iwill:~# ñññññ

I don't know how to fix this issue without having to make manual changes to
the generated image.
I would like the generated image with Spanish support available once the
.wic image is burned into my USB memory stick.

Is that posible? How should be managed?

Thanks in advance for your time! :-)


-- 




*NOTA LEGAL*
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
contiene información de carácter confidencial exclusivamente dirigida a su
destinatario y se encuentra protegido por Ley. Cualquier persona distinta
de su destinataria tiene prohibida su reproducción, uso, divulgación, copia
o impresión total o parcial. Si ha recibido este correo electrónico por
error, se ruega lo notifique de inmediato al remitente borrando el mensaje
original juntamente con sus ficheros anexos. Gracias.

De conformidad con lo establecido en la LOPD, NAYAR SYSTEMS SL garantiza la
adopción de las medidas necesarias para asegurar el tratamiento
confidencial de los datos de carácter personal. Así mismo le informamos de
la inclusión de sus datos en un fichero bajo la responsabilidad de NAYAR
SYSTEMS SL, con la finalidad de poder atender los compromisos derivados de
la relación que mantenemos con usted. Si lo desea, puede ejercer sus
derechos de acceso, rectificación, cancelación y oposición mediante un
escrito a la siguiente dirección: i...@nayarsystems.com

*LEGAL NOTE*
This email and any attachments to it contains is confidential information
exclusively intended for the recipients. Any divulgation, copy or
distribution to third parties is prohibited without written permission of
NAYAR SYSTEMS SL. If you have received this e-mail in error, please notify
the sender immediately. In accordance with Law 15/1999 of 13 December on
the Protection of Personal Data, the NAYAR SYSTEMS SL guarantees that it
has adopted the necessary measures to ensure the confidential treatment of
personal information. We also inform you that you can exercise your access,
rectification, cancellation and opposition rights by send us a mail to:
i...@nayarsystems.com
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to