All of lore.kernel.org
 help / color / mirror / Atom feed
* Why generated locales does not have .UTF-8 suffix?
@ 2017-03-14 15:36 Fabio Emiliani
  2017-03-14 16:39 ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Emiliani @ 2017-03-14 15:36 UTC (permalink / raw)
  To: yocto

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

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.

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


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

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

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

* Re: Why generated locales does not have .UTF-8 suffix?
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2017-03-14 16:39 UTC (permalink / raw)
  To: Fabio Emiliani, yocto


[-- Attachment #1.1: Type: text/plain, Size: 2107 bytes --]



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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

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

* Re: Why generated locales does not have .UTF-8 suffix?
  2017-03-14 16:39 ` Khem Raj
@ 2017-03-14 16:50   ` Fabio Emiliani
  2017-03-14 17:00     ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Emiliani @ 2017-03-14 16:50 UTC (permalink / raw)
  To: Khem Raj, yocto

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

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.

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


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

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

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

* Re: Why generated locales does not have .UTF-8 suffix?
  2017-03-14 16:50   ` Fabio Emiliani
@ 2017-03-14 17:00     ` Khem Raj
  2017-03-14 17:08       ` Fabio Emiliani
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2017-03-14 17:00 UTC (permalink / raw)
  To: Fabio Emiliani, yocto


[-- Attachment #1.1: Type: text/plain, Size: 3688 bytes --]



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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

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

* Re: Why generated locales does not have .UTF-8 suffix?
  2017-03-14 17:00     ` Khem Raj
@ 2017-03-14 17:08       ` Fabio Emiliani
  2017-03-15 14:39         ` Fabio Emiliani
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Emiliani @ 2017-03-14 17:08 UTC (permalink / raw)
  To: Khem Raj, yocto

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

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

* Re: Why generated locales does not have .UTF-8 suffix?
  2017-03-14 17:08       ` Fabio Emiliani
@ 2017-03-15 14:39         ` Fabio Emiliani
  0 siblings, 0 replies; 6+ messages in thread
From: Fabio Emiliani @ 2017-03-15 14:39 UTC (permalink / raw)
  To: Khem Raj, yocto

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

Hi Khem,

I confirm that generated locales are UTF-8 encoded. Even if they don't 
have .utf8 suffix at the end of the file name. This morning I  had an 
answer from StackOverflow:

> http://stackoverflow.com/questions/42784435/how-to-check-if-a-locale-is-utf-8/42797421#42797421
I've also opened a bug on bugzilla to try to solve an annyoing encoding 
problem:

> https://bugzilla.yoctoproject.org/show_bug.cgi?id=11153#c1
I hope this can help everyone has similar problems

--

Fabio

Il 14/03/2017 18:08, Fabio Emiliani ha scritto:
>
> 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***
>

-- 

*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: 22714 bytes --]

[-- Attachment #2.2: Type: image/jpeg, Size: 16571 bytes --]

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

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

end of thread, other threads:[~2017-03-15 14:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2017-03-15 14:39         ` Fabio Emiliani

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.