All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Emiliani <fabio.emiliani@artgroup-spa.com>
To: Khem Raj <raj.khem@gmail.com>, <yocto@yoctoproject.org>
Subject: Re: Why generated locales does not have .UTF-8 suffix?
Date: Tue, 14 Mar 2017 18:08:13 +0100	[thread overview]
Message-ID: <f70f80ef-e27f-5f26-c40a-6c6a6451021d@artgroup-spa.com> (raw)
In-Reply-To: <b4266698-0236-ab9a-10ea-c72862efa627@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5079 bytes --]

Hi Khem,

I've tried with the GLIBC_GENERATE_LOCALES variable too but locales are 
still generated without .utf8 suffix.

A little bit of info, locales are working, I can see localized strings. 
E.g. if I set en_US locale and execute "ls --help" I can see the output 
of ls in english. If i set zh_CN (chinese) locale and execute "ls 
--help" I can see the output of ls in chinese.

The problem is realted to the encoding of a locale. Until now I have not 
found any way to generate an UTF-8 locale.

Since the encoding is not specified in the file name, how can I check 
the encoding of a locale called "en_US"?

Best regards,

Fabio Emiliani

Il 14/03/2017 18:00, Khem Raj ha scritto:
>
> On 3/14/17 9:50 AM, Fabio Emiliani wrote:
>> Hi Khem,
>>
>> unfortunatly doesn't work.
>>
>> The IMAGE_LINGUAS variable can be valorized only with the suffixes of
>> the locale-base-* packages. As of now my list of locale-base-* packages
>> for en_US is:
>>
>>> locale-base-en-us.iso-8859-1
>>> locale-base-en-us
>> no .utf8 suffix. That's strange, I'm not sure that the en_US locale I've
>> generated supports UTF-8 encoding.
> does this help ?
>
> GLIBC_GENERATE_LOCALES = "de_DE en_US de_DE.UTF-8 en_US.UTF-8"
> IMAGE_LINGUAS = "de-de en-us"
>
>
>> I've just opened a bug on bugzilla:
>>
>>> https://bugzilla.yoctoproject.org/show_bug.cgi?id=11153
>> Any other ideas?
>>
>> Thanks in advance for your time
>>
>> Best regards,
>>
>> Fabio Emiliani
>>
>> Il 14/03/2017 17:39, Khem Raj ha scritto:
>>> On 3/14/17 8:36 AM, Fabio Emiliani wrote:
>>>> Dear all,
>>>>
>>>> I've generated several locales specifying, in the local.conf file, the
>>>> variable:
>>>>
>>>>> |IMAGE_LINGUAS = "de-de fr-fr en-gb en-gb.iso-8859-1 en-us
>>>>> en-us.iso-8859-1 zh-cn"|
>>>> inspecting the target file system, both in: /usr/share/locale and
>>>> /usr/lib/locale, generated locales does not have the .UTF-8 suffix.
>>>>
>>> Perhaps adding en-gb.utf8 to IMAGE_LINGUAS might help you.
>>>
>>>> See:
>>>>
>>>>> |/usr/share/locale/ drwxr-xr-x 6 root root 416 Nov 17 2016 . drwxr-xr-x
>>>>> 30 root root 2056 Nov 17 2016 .. drwxr-xr-x 4 root root 296 Nov 17
>>>>> 2016 de drwxr-xr-x 3 root root 232 Nov 17 2016 en_GB drwxr-xr-x 4 root
>>>>> root 296 Nov 17 2016 fr drwxr-xr-x 4 root root 296 Nov 17 2016 zh_CN|
>>>> |and|
>>>>
>>>> ||
>>>>
>>>>> |/usr/lib/locale/ drwxr-xr-x 9 root root 640 Mar 13 2017 . drwxr-xr-x
>>>>> 32 root root 40000 Mar 13 2017 .. drwxr-xr-x 3 root root 1016 Mar 13
>>>>> 2017 de_DE drwxr-xr-x 3 root root 1016 Mar 13 2017 en_GB drwxr-xr-x 3
>>>>> root root 1016 Mar 13 2017 en_GB.ISO-8859-1 drwxr-xr-x 3 root root
>>>>> 1016 Mar 13 2017 en_US drwxr-xr-x 3 root root 1016 Mar 13 2017
>>>>> en_US.ISO-8859-1 drwxr-xr-x 3 root root 1016 Mar 13 2017 fr_FR
>>>>> drwxr-xr-x 3 root root 1016 Mar 13 2017 zh_CN|
>>>> What is the character encoding of the following locales: de_DE, en_GB,
>>>> en_US, fr_FR, zh_CN?
>>>>
>>>> Thanks in advance for your time
>>>>
>>>> Best regards,
>>>>
>>>> Fabio Emiliani
>>>>
>>>> -- 
>>>>
>>>> *Fabio Emiliani*
>>>>
>>>> */Software Engineer/*
>>>>
>>>> /Ph. +39 075 8298 530  /
>>>>
>>>> /fabio.emiliani@artgroup-spa.com/ <mailto:fabio.emiliani@artgroup-spa.com>
>>>>
>>>> DISCLAIMER
>>>> This email and any attachment may contain confidential information. If
>>>> you are not the intended recipient you are not authorised to copy or
>>>> disclose all or any part of it without the prior written consent of ART SpA.
>>>>
>>>>   
>>>>
>>>> /ART SpA – Step Forward With US - //www.artgroup-spa.com/logo_ART_firma-1//
>>>>
>>>> /Ph. +39 075 8298 501 – Fax +39 075 8298 525 /
>>>>
>>>> P*Please consider our environment  before printing this e-mail***
>>>>
>>>>   
>>>>
>>>>
>>>>
>> -- 
>>
>> *Fabio Emiliani*
>>
>> */Software Engineer/*
>>
>> /Ph. +39 075 8298 530  /
>>
>> /fabio.emiliani@artgroup-spa.com/ <mailto:fabio.emiliani@artgroup-spa.com>
>>
>> DISCLAIMER
>> This email and any attachment may contain confidential information. If
>> you are not the intended recipient you are not authorised to copy or
>> disclose all or any part of it without the prior written consent of ART SpA.
>>
>>   
>>
>> /ART SpA – Step Forward With US - //www.artgroup-spa.com/logo_ART_firma-1//
>>
>> /Ph. +39 075 8298 501 – Fax +39 075 8298 525 /
>>
>> P*Please consider our environment  before printing this e-mail***
>>
>>   
>>

-- 

*Fabio Emiliani*

*/Software Engineer/*

/Ph. +39 075 8298 530 /

/fabio.emiliani@artgroup-spa.com/ <mailto:fabio.emiliani@artgroup-spa.com>

DISCLAIMER
This email and any attachment may contain confidential information. If 
you are not the intended recipient you are not authorised to copy or 
disclose all or any part of it without the prior written consent of ART SpA.

/ART SpA – Step Forward With US - //www.artgroup-spa.com/logo_ART_firma-1//

/Ph. +39 075 8298 501 – Fax +39 075 8298 525 /

P*Please consider our environment  before printing this e-mail***


[-- Attachment #2.1: Type: text/html, Size: 13558 bytes --]

[-- Attachment #2.2: logo_ART_firma-1.jpg --]
[-- Type: image/jpeg, Size: 16571 bytes --]

  reply	other threads:[~2017-03-14 23:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-14 15:36 Why generated locales does not have .UTF-8 suffix? Fabio Emiliani
2017-03-14 16:39 ` Khem Raj
2017-03-14 16:50   ` Fabio Emiliani
2017-03-14 17:00     ` Khem Raj
2017-03-14 17:08       ` Fabio Emiliani [this message]
2017-03-15 14:39         ` Fabio Emiliani

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=f70f80ef-e27f-5f26-c40a-6c6a6451021d@artgroup-spa.com \
    --to=fabio.emiliani@artgroup-spa.com \
    --cc=raj.khem@gmail.com \
    --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.