All of lore.kernel.org
 help / color / mirror / Atom feed
* Language settings GTK (glibc?) problem
@ 2016-02-03 11:49 Andreas Müller
  2016-02-03 14:50   ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 13+ messages in thread
From: Andreas Müller @ 2016-02-03 11:49 UTC (permalink / raw)
  To: openembedded-devel, Patches and discussions about the oe-core layer

Hi,

while testing libreoffice language packets I found that language
settings for GTK based apps are broken. Interestingly QT based
applications (tested with qtcreator and lxqt) and libreoffice are
working fine.

I did some research and hope for some expert with helping hints. Details are:

* I am testing with jethro environment

* X session is started for an unprivileged user by display manager
lxdm. That sets the following environment vars for language:
| LANG="de_DE"
| LANGUAGE="de_DE"
| LC_MESSAGES="de_DE"

* starting e.g gedit from console complains:
| (process:4205): Gtk-WARNING **: Locale not supported by C library.
|    Using the fallback 'C' locale.

* 'locale -a' says
| locale: Kann LC_COLLATE nicht auf die Standard-Lokale einstellen:
Datei oder Verzeichnis nicht | | gefunden
| C
| POSIX
| de_DE
| en_GB
| en_US
| fr_FR
Translation of error is (when setting en_GB on lxdm):
| locale: Cannot set LC_COLLATE to default locale: No such file or directory

Debugging the last two cases show that the error is caused for same reason:

* setlocale(LC_ALL, "") returns NULL for GTK apps
* setlocale (LC_CTYPE, "") returns NULL for 'locale -a'


Anybody with ideas what is missing/wrong on my images?

Andreas


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

* Re: Language settings GTK (glibc?) problem
  2016-02-03 11:49 Language settings GTK (glibc?) problem Andreas Müller
@ 2016-02-03 14:50   ` Richard Purdie
  0 siblings, 0 replies; 13+ messages in thread
From: Richard Purdie @ 2016-02-03 14:50 UTC (permalink / raw)
  To: Andreas Müller, openembedded-devel,
	Patches and discussions about the oe-core layer

On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
> Hi,
> 
> while testing libreoffice language packets I found that language
> settings for GTK based apps are broken. Interestingly QT based
> applications (tested with qtcreator and lxqt) and libreoffice are
> working fine.
> 
> I did some research and hope for some expert with helping hints.
> Details are:
> 
> * I am testing with jethro environment

I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
=3b5288f0a28205289063424afc474675cbaa05b8

or possibly:

https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c
9a19a11d

but I haven't looked into this much and don't have experience in this
area.

Cheers,

Richard


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

* Re: [OE-core] Language settings GTK (glibc?) problem
@ 2016-02-03 14:50   ` Richard Purdie
  0 siblings, 0 replies; 13+ messages in thread
From: Richard Purdie @ 2016-02-03 14:50 UTC (permalink / raw)
  To: Andreas Müller, openembedded-devel,
	Patches and discussions about the oe-core layer

On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
> Hi,
> 
> while testing libreoffice language packets I found that language
> settings for GTK based apps are broken. Interestingly QT based
> applications (tested with qtcreator and lxqt) and libreoffice are
> working fine.
> 
> I did some research and hope for some expert with helping hints.
> Details are:
> 
> * I am testing with jethro environment

I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
=3b5288f0a28205289063424afc474675cbaa05b8

or possibly:

https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c
9a19a11d

but I haven't looked into this much and don't have experience in this
area.

Cheers,

Richard


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

* Re: Language settings GTK (glibc?) problem
  2016-02-03 14:50   ` [OE-core] " Richard Purdie
@ 2016-02-03 16:01     ` Andreas Müller
  -1 siblings, 0 replies; 13+ messages in thread
From: Andreas Müller @ 2016-02-03 16:01 UTC (permalink / raw)
  To: Richard Purdie
  Cc: openembedded-devel, Patches and discussions about the oe-core layer

On Wed, Feb 3, 2016 at 3:50 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
>> Hi,
>>
>> while testing libreoffice language packets I found that language
>> settings for GTK based apps are broken. Interestingly QT based
>> applications (tested with qtcreator and lxqt) and libreoffice are
>> working fine.
>>
>> I did some research and hope for some expert with helping hints.
>> Details are:
>>
>> * I am testing with jethro environment
>
> I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
> =3b5288f0a28205289063424afc474675cbaa05b8
>
> or possibly:
>
> https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c
> 9a19a11d
>
> but I haven't looked into this much and don't have experience in this
> area.
Thanks and yes - I have seen these too but they are not in jethro - if
I am not mistaken.

Andreas


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

* Re: [OE-core] Language settings GTK (glibc?) problem
@ 2016-02-03 16:01     ` Andreas Müller
  0 siblings, 0 replies; 13+ messages in thread
From: Andreas Müller @ 2016-02-03 16:01 UTC (permalink / raw)
  To: Richard Purdie
  Cc: openembedded-devel, Patches and discussions about the oe-core layer

On Wed, Feb 3, 2016 at 3:50 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
>> Hi,
>>
>> while testing libreoffice language packets I found that language
>> settings for GTK based apps are broken. Interestingly QT based
>> applications (tested with qtcreator and lxqt) and libreoffice are
>> working fine.
>>
>> I did some research and hope for some expert with helping hints.
>> Details are:
>>
>> * I am testing with jethro environment
>
> I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
> =3b5288f0a28205289063424afc474675cbaa05b8
>
> or possibly:
>
> https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c
> 9a19a11d
>
> but I haven't looked into this much and don't have experience in this
> area.
Thanks and yes - I have seen these too but they are not in jethro - if
I am not mistaken.

Andreas


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

* Re: Language settings GTK (glibc?) problem
  2016-02-03 16:01     ` [OE-core] " Andreas Müller
@ 2016-02-04 10:09       ` Andreas Müller
  -1 siblings, 0 replies; 13+ messages in thread
From: Andreas Müller @ 2016-02-04 10:09 UTC (permalink / raw)
  To: openembedded-devel, Patches and discussions about the oe-core layer

On Wed, Feb 3, 2016 at 5:01 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Wed, Feb 3, 2016 at 3:50 PM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
>> On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
>>> Hi,
>>>
>>> while testing libreoffice language packets I found that language
>>> settings for GTK based apps are broken. Interestingly QT based
>>> applications (tested with qtcreator and lxqt) and libreoffice are
>>> working fine.
>>>
>>> I did some research and hope for some expert with helping hints.
>>> Details are:
>>>
>>> * I am testing with jethro environment
>>
>> I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
>> =3b5288f0a28205289063424afc474675cbaa05b8
>>
>> or possibly:
>>
>> https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c
>> 9a19a11d
>>
>> but I haven't looked into this much and don't have experience in this
>> area.
> Thanks and yes - I have seen these too but they are not in jethro - if
> I am not mistaken.
>
FWIW: I found an image where the language selection worked. This was based on

commit 4e0fb630d3bb0250ece6e2071ae49b2601ae3e57
Author:     Armin Kuster <akuster808@gmail.com>
AuthorDate: Tue Aug 11 11:11:04 2015 +0530
Commit:     Richard Purdie <richard.purdie@linuxfoundation.org>
CommitDate: Fri Aug 14 08:30:21 2015 +0100

    tzdata: update to 2015f

    Changes affecting future time stamps

    North Korea switches to +0830 on 2015-08-15.  (Thanks to Steffen Thorsen.)
    The abbreviation remains "KST".  (Thanks to Robert Elz.)

    Uruguay no longer observes DST.  (Thanks to Steffen Thorsen
    and Pablo Camargo.)

    Changes affecting past and future time stamps

    Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC.
    (Thanks to Roman Tudos.)

    Signed-off-by: Armin Kuster <akuster808@gmail.com>
    Signed-off-by: Ross Burton <ross.burton@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

which was before glibc update 2.21 -> 2.22

Andreas


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

* Re: [OE-core] Language settings GTK (glibc?) problem
@ 2016-02-04 10:09       ` Andreas Müller
  0 siblings, 0 replies; 13+ messages in thread
From: Andreas Müller @ 2016-02-04 10:09 UTC (permalink / raw)
  To: openembedded-devel, Patches and discussions about the oe-core layer

On Wed, Feb 3, 2016 at 5:01 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Wed, Feb 3, 2016 at 3:50 PM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
>> On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
>>> Hi,
>>>
>>> while testing libreoffice language packets I found that language
>>> settings for GTK based apps are broken. Interestingly QT based
>>> applications (tested with qtcreator and lxqt) and libreoffice are
>>> working fine.
>>>
>>> I did some research and hope for some expert with helping hints.
>>> Details are:
>>>
>>> * I am testing with jethro environment
>>
>> I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
>> =3b5288f0a28205289063424afc474675cbaa05b8
>>
>> or possibly:
>>
>> https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c
>> 9a19a11d
>>
>> but I haven't looked into this much and don't have experience in this
>> area.
> Thanks and yes - I have seen these too but they are not in jethro - if
> I am not mistaken.
>
FWIW: I found an image where the language selection worked. This was based on

commit 4e0fb630d3bb0250ece6e2071ae49b2601ae3e57
Author:     Armin Kuster <akuster808@gmail.com>
AuthorDate: Tue Aug 11 11:11:04 2015 +0530
Commit:     Richard Purdie <richard.purdie@linuxfoundation.org>
CommitDate: Fri Aug 14 08:30:21 2015 +0100

    tzdata: update to 2015f

    Changes affecting future time stamps

    North Korea switches to +0830 on 2015-08-15.  (Thanks to Steffen Thorsen.)
    The abbreviation remains "KST".  (Thanks to Robert Elz.)

    Uruguay no longer observes DST.  (Thanks to Steffen Thorsen
    and Pablo Camargo.)

    Changes affecting past and future time stamps

    Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC.
    (Thanks to Roman Tudos.)

    Signed-off-by: Armin Kuster <akuster808@gmail.com>
    Signed-off-by: Ross Burton <ross.burton@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

which was before glibc update 2.21 -> 2.22

Andreas


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

* Re: Language settings GTK (glibc?) problem
  2016-02-03 14:50   ` [OE-core] " Richard Purdie
@ 2016-02-05 12:02     ` Andreas Müller
  -1 siblings, 0 replies; 13+ messages in thread
From: Andreas Müller @ 2016-02-05 12:02 UTC (permalink / raw)
  To: Richard Purdie, rehsack
  Cc: openembedded-devel, Patches and discussions about the oe-core layer

On Wed, Feb 3, 2016 at 3:50 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
>> Hi,
>>
>> while testing libreoffice language packets I found that language
>> settings for GTK based apps are broken. Interestingly QT based
>> applications (tested with qtcreator and lxqt) and libreoffice are
>> working fine.
>>
>> I did some research and hope for some expert with helping hints.
>> Details are:
>>
>> * I am testing with jethro environment
>
> I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
> =3b5288f0a28205289063424afc474675cbaa05b8
>
> or possibly:
>
> https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c9a19a11d
After seeing that Jens just sent this ^^ for Jethro, I think I have
read this email the wrong way around: This commit does not break
things it fixes them.

Background: I saw the mentioned error

_nl_intern_locale_data: Assertion `cnt < (sizeof
(_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))'
failed.

when running my images but wiped them away by [1] without fixing the root cause.

My excuse: This error was thrown in lxdm greeter. I thought it was a
problem with lxdm which I 'fixed' by adding the patch.

Will give the backport a test and hope I'll get i18n back for GTK (and
most likely others).

Andreas


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

* Re: [OE-core] Language settings GTK (glibc?) problem
@ 2016-02-05 12:02     ` Andreas Müller
  0 siblings, 0 replies; 13+ messages in thread
From: Andreas Müller @ 2016-02-05 12:02 UTC (permalink / raw)
  To: Richard Purdie, rehsack
  Cc: openembedded-devel, Patches and discussions about the oe-core layer

On Wed, Feb 3, 2016 at 3:50 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
>> Hi,
>>
>> while testing libreoffice language packets I found that language
>> settings for GTK based apps are broken. Interestingly QT based
>> applications (tested with qtcreator and lxqt) and libreoffice are
>> working fine.
>>
>> I did some research and hope for some expert with helping hints.
>> Details are:
>>
>> * I am testing with jethro environment
>
> I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
> =3b5288f0a28205289063424afc474675cbaa05b8
>
> or possibly:
>
> https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c9a19a11d
After seeing that Jens just sent this ^^ for Jethro, I think I have
read this email the wrong way around: This commit does not break
things it fixes them.

Background: I saw the mentioned error

_nl_intern_locale_data: Assertion `cnt < (sizeof
(_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))'
failed.

when running my images but wiped them away by [1] without fixing the root cause.

My excuse: This error was thrown in lxdm greeter. I thought it was a
problem with lxdm which I 'fixed' by adding the patch.

Will give the backport a test and hope I'll get i18n back for GTK (and
most likely others).

Andreas


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

* Re: Language settings GTK (glibc?) problem
  2016-02-05 12:02     ` [OE-core] " Andreas Müller
@ 2016-02-05 12:04       ` Andreas Müller
  -1 siblings, 0 replies; 13+ messages in thread
From: Andreas Müller @ 2016-02-05 12:04 UTC (permalink / raw)
  To: Richard Purdie, rehsack
  Cc: openembedded-devel, Patches and discussions about the oe-core layer

On Fri, Feb 5, 2016 at 1:02 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Wed, Feb 3, 2016 at 3:50 PM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
>> On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
>>> Hi,
>>>
>>> while testing libreoffice language packets I found that language
>>> settings for GTK based apps are broken. Interestingly QT based
>>> applications (tested with qtcreator and lxqt) and libreoffice are
>>> working fine.
>>>
>>> I did some research and hope for some expert with helping hints.
>>> Details are:
>>>
>>> * I am testing with jethro environment
>>
>> I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
>> =3b5288f0a28205289063424afc474675cbaa05b8
>>
>> or possibly:
>>
>> https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c9a19a11d
> After seeing that Jens just sent this ^^ for Jethro, I think I have
> read this email the wrong way around: This commit does not break
> things it fixes them.
>
> Background: I saw the mentioned error
>
> _nl_intern_locale_data: Assertion `cnt < (sizeof
> (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))'
> failed.
>
> when running my images but wiped them away by [1] without fixing the root cause.
>
> My excuse: This error was thrown in lxdm greeter. I thought it was a
> problem with lxdm which I 'fixed' by adding the patch.
>
> Will give the backport a test and hope I'll get i18n back for GTK (and
> most likely others).
>
> Andreas
Oops I forgot:

[1] https://github.com/schnitzeltony/oe-core/commit/5c6616eafc1911c9dd79c56fa544d38c60a331fb


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

* Re: [OE-core] Language settings GTK (glibc?) problem
@ 2016-02-05 12:04       ` Andreas Müller
  0 siblings, 0 replies; 13+ messages in thread
From: Andreas Müller @ 2016-02-05 12:04 UTC (permalink / raw)
  To: Richard Purdie, rehsack
  Cc: openembedded-devel, Patches and discussions about the oe-core layer

On Fri, Feb 5, 2016 at 1:02 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Wed, Feb 3, 2016 at 3:50 PM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
>> On Wed, 2016-02-03 at 12:49 +0100, Andreas Müller wrote:
>>> Hi,
>>>
>>> while testing libreoffice language packets I found that language
>>> settings for GTK based apps are broken. Interestingly QT based
>>> applications (tested with qtcreator and lxqt) and libreoffice are
>>> working fine.
>>>
>>> I did some research and hope for some expert with helping hints.
>>> Details are:
>>>
>>> * I am testing with jethro environment
>>
>> I did wonder about http://git.yoctoproject.org/cgit.cgi/poky/commit/?id
>> =3b5288f0a28205289063424afc474675cbaa05b8
>>
>> or possibly:
>>
>> https://github.com/rehsack/poky/commit/46ac36953e2e76ba716c7ba42ddfe41c9a19a11d
> After seeing that Jens just sent this ^^ for Jethro, I think I have
> read this email the wrong way around: This commit does not break
> things it fixes them.
>
> Background: I saw the mentioned error
>
> _nl_intern_locale_data: Assertion `cnt < (sizeof
> (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))'
> failed.
>
> when running my images but wiped them away by [1] without fixing the root cause.
>
> My excuse: This error was thrown in lxdm greeter. I thought it was a
> problem with lxdm which I 'fixed' by adding the patch.
>
> Will give the backport a test and hope I'll get i18n back for GTK (and
> most likely others).
>
> Andreas
Oops I forgot:

[1] https://github.com/schnitzeltony/oe-core/commit/5c6616eafc1911c9dd79c56fa544d38c60a331fb


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

* Re: Language settings GTK (glibc?) problem
  2016-02-05 12:02     ` [OE-core] " Andreas Müller
@ 2016-02-05 15:27       ` Burton, Ross
  -1 siblings, 0 replies; 13+ messages in thread
From: Burton, Ross @ 2016-02-05 15:27 UTC (permalink / raw)
  To: Andreas Müller
  Cc: Patches and discussions about the oe-core layer, openembedded-devel

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

On 5 February 2016 at 12:02, Andreas Müller <schnitzeltony@googlemail.com>
wrote:

> Will give the backport a test and hope I'll get i18n back for GTK (and
> most likely others).
>

FWIW I've tested and queued this for oe-core master too.

Ross

[-- Attachment #2: Type: text/html, Size: 658 bytes --]

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

* Re: [OE-core] Language settings GTK (glibc?) problem
@ 2016-02-05 15:27       ` Burton, Ross
  0 siblings, 0 replies; 13+ messages in thread
From: Burton, Ross @ 2016-02-05 15:27 UTC (permalink / raw)
  To: Andreas Müller
  Cc: Patches and discussions about the oe-core layer, Richard Purdie,
	openembedded-devel

On 5 February 2016 at 12:02, Andreas Müller <schnitzeltony@googlemail.com>
wrote:

> Will give the backport a test and hope I'll get i18n back for GTK (and
> most likely others).
>

FWIW I've tested and queued this for oe-core master too.

Ross


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

end of thread, other threads:[~2016-02-05 15:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-03 11:49 Language settings GTK (glibc?) problem Andreas Müller
2016-02-03 14:50 ` Richard Purdie
2016-02-03 14:50   ` [OE-core] " Richard Purdie
2016-02-03 16:01   ` Andreas Müller
2016-02-03 16:01     ` [OE-core] " Andreas Müller
2016-02-04 10:09     ` Andreas Müller
2016-02-04 10:09       ` [OE-core] " Andreas Müller
2016-02-05 12:02   ` Andreas Müller
2016-02-05 12:02     ` [OE-core] " Andreas Müller
2016-02-05 12:04     ` Andreas Müller
2016-02-05 12:04       ` [OE-core] " Andreas Müller
2016-02-05 15:27     ` Burton, Ross
2016-02-05 15:27       ` [OE-core] " Burton, Ross

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.