Re: setlocale doesn't change the language. Why?

2015-03-13 Thread Joerg Desch
Am Thu, 12 Mar 2015 20:24:21 +0100 schrieb Wouter Verhelst: > I've been fighting with that myself the other day. > echo $LANGUAGE? is already unset. > This is a GNU extension which does have some use, but it *breaks* in > some non-wrong use cases. Until now, I'm really happy with the toolchain

Re: setlocale doesn't change the language. Why?

2015-03-12 Thread Wouter Verhelst
On Wed, Mar 11, 2015 at 01:27:21PM +, Joerg Desch wrote: > Hi. > > I'm running Debian Squezze on a small AMD Geode based embedded PC. I need > to use the gettext library independend from the system wide language > settings to toggle the language for strings only. > > On my PC, the test runs

SOLVED: setlocale doesn't change the language. Why?

2015-03-12 Thread Joerg Desch
Am Thu, 12 Mar 2015 09:29:01 +0100 schrieb Tomas Pospisek: > /etc/locale.gen The solution was simple. While "dpkg-reconfigure locales" only allows the selection of one language. I thought that this should be the default. But instead all not selected entries are not possible. So the solution wa

Re: setlocale doesn't change the language. Why?

2015-03-12 Thread Jonas Smedegaard
Quoting Joerg Desch (2015-03-12 11:08:41) > Am Thu, 12 Mar 2015 09:29:01 +0100 schrieb Tomas Pospisek: > > > /etc/locale.gen > > > > Also 'man locale' > > *t > > OK, the package "locales" wasn't installed by the embedded > distribution. > > After installing locales and selecting "en_GB.UTF8" a

Re: setlocale doesn't change the language. Why?

2015-03-12 Thread Joerg Desch
Am Thu, 12 Mar 2015 09:57:08 + schrieb Colin Watson: > There is no such locale. Perhaps you meant en_GB.UTF-8 or en_US.UTF-8. You are right. But this selection isn't needed. ;-) I've already changed this in my current sample. -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian

Re: setlocale doesn't change the language. Why?

2015-03-12 Thread Joerg Desch
Am Thu, 12 Mar 2015 09:29:01 +0100 schrieb Tomas Pospisek: > /etc/locale.gen > > Also 'man locale' > *t OK, the package "locales" wasn't installed by the embedded distribution. After installing locales and selecting "en_GB.UTF8" as default, my sample still not use "de_DE.UTF8". So I've called

Re: setlocale doesn't change the language. Why?

2015-03-12 Thread Colin Watson
On Wed, Mar 11, 2015 at 01:27:21PM +, Joerg Desch wrote: > printf("Switch to 'en'\n"); > setlocale(LC_MESSAGES,"en_EN.UTF8"); There is no such locale. Perhaps you meant en_GB.UTF-8 or en_US.UTF-8. -- Colin Watson [cjwat...@debian.org] -- To U

Re: setlocale doesn't change the language. Why?

2015-03-12 Thread Tomas Pospisek
Am 12.03.2015 um 06:50 schrieb Joerg Desch: > Am Wed, 11 Mar 2015 21:16:20 +0500 schrieb Andrey Rahmatullin: > >> On Wed, Mar 11, 2015 at 01:27:21PM +, Joerg Desch wrote: >>> Switch to 'en' >>> New LOCALE: 'C' >>> Hello World Switch to 'de' >>> New LOCALE: 'C' >>> Hello World >> So these cases

setlocale doesn't change the language. Why?

2015-03-12 Thread Joerg Desch
Hi. I'm running Debian Squezze on a small AMD Geode based embedded PC. I need to use the gettext library independend from the system wide language settings to toggle the language for strings only. On my PC, the test runs within a chroot environment als expected. On the embedded PC, it doesn't

Re: setlocale doesn't change the language. Why?

2015-03-11 Thread Joerg Desch
Am Wed, 11 Mar 2015 21:16:20 +0500 schrieb Andrey Rahmatullin: > On Wed, Mar 11, 2015 at 01:27:21PM +, Joerg Desch wrote: >> Switch to 'en' >> New LOCALE: 'C' >> Hello World Switch to 'de' >> New LOCALE: 'C' >> Hello World > So these cases are expected to you? No. I expect the same output as

Re: setlocale doesn't change the language. Why?

2015-03-11 Thread Andrey Rahmatullin
On Wed, Mar 11, 2015 at 01:27:21PM +, Joerg Desch wrote: > Switch to 'en' > New LOCALE: 'C' > Hello World > Switch to 'de' > New LOCALE: 'C' > Hello World So these cases are expected to you? > Switch to 'de.utf8' > New LOCALE: 'de_DE.UTF8' > Hallo Welt > > And on the embedded PC: > # ./sample