public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] openrc update : locale variables are gone
       [not found] <1663091894.538421305380394525.JavaMail.root@spooler5n-g27.priv.proxad.net>
@ 2011-05-14 13:41 ` Alain DIDIERJEAN
  2011-05-14 14:09   ` Willie Wong
  0 siblings, 1 reply; 6+ messages in thread
From: Alain DIDIERJEAN @ 2011-05-14 13:41 UTC (permalink / raw
  To: gentoo-user

As the subject line says, all variables pertaining to locale are gone (LANG & LINGUAS not set, LC_* set to POSIX").
In which file are they supposed to be set these days ?

-- 
                            
        Alain DIDIERJEAN      Puisque ces mystères nous dépassent
                           Feignons d'en être l'organisateur




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

* Re: [gentoo-user] openrc update : locale variables are gone
  2011-05-14 13:41 ` [gentoo-user] openrc update : locale variables are gone Alain DIDIERJEAN
@ 2011-05-14 14:09   ` Willie Wong
  2011-05-14 14:26     ` Florian Philipp
  0 siblings, 1 reply; 6+ messages in thread
From: Willie Wong @ 2011-05-14 14:09 UTC (permalink / raw
  To: gentoo-user

On Sat, May 14, 2011 at 03:41:37PM +0200, Alain DIDIERJEAN wrote:
> As the subject line says, all variables pertaining to locale are gone (LANG & LINGUAS not set, LC_* set to POSIX").
> In which file are they supposed to be set these days ?
> 

/etc/env.d/02locale

W
-- 
Willie W. Wong                                     wwong@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
         et vice versa   ~~~  I. Newton



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

* Re: [gentoo-user] openrc update : locale variables are gone
  2011-05-14 14:09   ` Willie Wong
@ 2011-05-14 14:26     ` Florian Philipp
  2011-05-14 19:05       ` Mick
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Philipp @ 2011-05-14 14:26 UTC (permalink / raw
  To: gentoo-user

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

Am 14.05.2011 16:09, schrieb Willie Wong:
> On Sat, May 14, 2011 at 03:41:37PM +0200, Alain DIDIERJEAN wrote:
>> As the subject line says, all variables pertaining to locale are gone (LANG & LINGUAS not set, LC_* set to POSIX").
>> In which file are they supposed to be set these days ?
>>
> 
> /etc/env.d/02locale
> 
> W

Don't forget to run `env-update && source /etc/profile`.


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

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

* Re: [gentoo-user] openrc update : locale variables are gone
  2011-05-14 14:26     ` Florian Philipp
@ 2011-05-14 19:05       ` Mick
  2011-05-15  8:43         ` Alain DIDIERJEAN
  0 siblings, 1 reply; 6+ messages in thread
From: Mick @ 2011-05-14 19:05 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1086 bytes --]

On Saturday 14 May 2011 15:26:38 Florian Philipp wrote:
> Am 14.05.2011 16:09, schrieb Willie Wong:
> > On Sat, May 14, 2011 at 03:41:37PM +0200, Alain DIDIERJEAN wrote:
> >> As the subject line says, all variables pertaining to locale are gone
> >> (LANG & LINGUAS not set, LC_* set to POSIX"). In which file are they
> >> supposed to be set these days ?
> > 
> > /etc/env.d/02locale
> > 
> > W
> 
> Don't forget to run `env-update && source /etc/profile`.

Hmm ... not sure if the Window Manager/Display Environment sticks its finger 
in my locale!

On a console logged in as a plain user I get exactly what I have in my 
/etc/env.d/02locale.  The story is the same when I su to root in a terminal 
within X.  However, when I am in a terminal in X as a plain user I get *every* 
locale variable as  en_GB.UTF-8.

My /etc/env.d/02locale shows:

LANG="en_GB.UTF-8"
LC_TIME="POSIX"
LC_COLLATE="C"

Why would this be so?  The Language setting in my WM (e17) is set as 'System 
Default' and at the bottom is shows "System Locale: Locale".
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-user] openrc update : locale variables are gone
  2011-05-14 19:05       ` Mick
@ 2011-05-15  8:43         ` Alain DIDIERJEAN
  2011-05-15 12:51           ` Mick
  0 siblings, 1 reply; 6+ messages in thread
From: Alain DIDIERJEAN @ 2011-05-15  8:43 UTC (permalink / raw
  To: gentoo-user


----- Mail Original -----
De: "Mick" <michaelkintzios@gmail.com>
À: gentoo-user@lists.gentoo.org
Envoyé: Samedi 14 Mai 2011 21h05:57 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [gentoo-user] openrc update : locale variables are gone

On Saturday 14 May 2011 15:26:38 Florian Philipp wrote:
> Am 14.05.2011 16:09, schrieb Willie Wong:
> > On Sat, May 14, 2011 at 03:41:37PM +0200, Alain DIDIERJEAN wrote:
> >> As the subject line says, all variables pertaining to locale are gone
> >> (LANG & LINGUAS not set, LC_* set to POSIX"). In which file are they
> >> supposed to be set these days ?
> > 
> > /etc/env.d/02locale
> > 
> > W
> 
> Don't forget to run `env-update && source /etc/profile`.

Hmm ... not sure if the Window Manager/Display Environment sticks its finger 
in my locale!

On a console logged in as a plain user I get exactly what I have in my 
/etc/env.d/02locale.  The story is the same when I su to root in a terminal 
within X.  However, when I am in a terminal in X as a plain user I get *every* 
locale variable as  en_GB.UTF-8.

My /etc/env.d/02locale shows:

LANG="en_GB.UTF-8"
LC_TIME="POSIX"
LC_COLLATE="C"

Why would this be so?  The Language setting in my WM (e17) is set as 'System 
Default' and at the bottom is shows "System Locale: Locale".
-- 

Following the openrc update in gentoo amd64, all locale variables suddenly vanished. I created a /etc/env.d/02locale file which includes LANG="fr_FR.UTF-8".
lyx loads with english menus. It's only after exporting LANG from .bashrc that I can launch it from a shell with its french menus. To achieve the same effect from KDE menu, I have to set the launch command to LANG="fr_FR.UTF-8" lyx.
My preference would be a global setting (as it used to be), as all users on my machine are french.
I have the same problem with most of the apps.
Any comments ?

-- 
                            
        Alain DIDIERJEAN      Puisque ces mystères nous dépassent
                           Feignons d'en être l'organisateur




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

* Re: [gentoo-user] openrc update : locale variables are gone
  2011-05-15  8:43         ` Alain DIDIERJEAN
@ 2011-05-15 12:51           ` Mick
  0 siblings, 0 replies; 6+ messages in thread
From: Mick @ 2011-05-15 12:51 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1977 bytes --]

On Sunday 15 May 2011 09:43:39 Alain DIDIERJEAN wrote:

> Following the openrc update in gentoo amd64, all locale variables suddenly
> vanished. I created a /etc/env.d/02locale file which includes
> LANG="fr_FR.UTF-8". lyx loads with english menus. It's only after
> exporting LANG from .bashrc that I can launch it from a shell with its
> french menus. To achieve the same effect from KDE menu, I have to set the
> launch command to LANG="fr_FR.UTF-8" lyx. My preference would be a global
> setting (as it used to be), as all users on my machine are french. I have
> the same problem with most of the apps.
> Any comments ?

Alain, as I said in my previous post the /etc/env.d/02locale settings do not 
seem to transfer across to user terminals when run in X.  I do not run KDE on 
this machine to see what KDE locale settings are doing ... have you set it to 
use the French language?

Either way, I have noticed that although locale from a user terminal in X 
shows everything as en_GB.UTF-8:

$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=en_GB.UTF-8

without me having set it so, the same terminal shows different environment 
variables which correctly coincide with the /etc/env.d/02locale settings:

$ echo $LANG
en_GB.UTF-8

$ echo $LC_TIME
POSIX

$ echo $LC_COLLATE
C

The only odd is the LC_ALL - which I have not set up in my ~/.bashrc or 
02locale files!

$ echo $LC_ALL
en_GB.UTF-8

Perhaps my WM decided to take the LANG variable which happens to be 
en_GB.UTF-8 and apply it to LC_ALL?  The solution for me was to set in 
~/.bashrc:

export LC_ALL=""

Hope this works for your setup too.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2011-05-15 12:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1663091894.538421305380394525.JavaMail.root@spooler5n-g27.priv.proxad.net>
2011-05-14 13:41 ` [gentoo-user] openrc update : locale variables are gone Alain DIDIERJEAN
2011-05-14 14:09   ` Willie Wong
2011-05-14 14:26     ` Florian Philipp
2011-05-14 19:05       ` Mick
2011-05-15  8:43         ` Alain DIDIERJEAN
2011-05-15 12:51           ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox