From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales
Date: Sat, 26 Jun 2010 11:49:19 +0100 [thread overview]
Message-ID: <201006261149.20507.michaelkintzios@gmail.com> (raw)
In-Reply-To: <201006261140.23888.michaelkintzios@gmail.com>
[-- Attachment #1: Type: Text/Plain, Size: 2066 bytes --]
On Saturday 26 June 2010 11:40:14 Mick wrote:
> On Tuesday 22 June 2010 17:14:13 Christopher Swift wrote:
> > Ar Maw, 2010-06-22 am 14:38 +0100, ysgrifennodd Mick:
> > > I'm also interested in this - although my question is probably simpler:
> > >
> > > I would like to use en_GB but I do not undestand why running 'locale'
> > > as a plain user shows:
> > >
> > > $ locale
> > > LANG=en_US.UTF-8
> > > LC_CTYPE="en_US.UTF-8"
> > > LC_NUMERIC="en_US.UTF-8"
> > > LC_TIME="en_US.UTF-8"
> > > LC_COLLATE="en_US.UTF-8"
> > > LC_MONETARY="en_US.UTF-8"
> > > LC_MESSAGES="en_US.UTF-8"
> > > LC_PAPER="en_US.UTF-8"
> > > LC_NAME="en_US.UTF-8"
> > > LC_ADDRESS="en_US.UTF-8"
> > > LC_TELEPHONE="en_US.UTF-8"
> > > LC_MEASUREMENT="en_US.UTF-8"
> > > LC_IDENTIFICATION="en_US.UTF-8"
> > > LC_ALL=en_US.UTF-8
> > >
> > > why when running it as root:
> > >
> > > # locale
> > > LANG=
> > > LC_CTYPE="POSIX"
> > > LC_NUMERIC="POSIX"
> > > LC_TIME="POSIX"
> > > LC_COLLATE="POSIX"
> > > LC_MONETARY="POSIX"
> > > LC_MESSAGES="POSIX"
> > > LC_PAPER="POSIX"
> > > LC_NAME="POSIX"
> > > LC_ADDRESS="POSIX"
> > > LC_TELEPHONE="POSIX"
> > > LC_MEASUREMENT="POSIX"
> > > LC_IDENTIFICATION="POSIX"
> > > LC_ALL=
> > >
> > >
> > > I do not have set a /etc/env.d/02locale yet, so where is my plain user
> > > locale being read from?
> >
> > Your plain user locale is usually read from ~/.bashrc, this can be set
> > to en_GB by having the following lines:
> > export LANG="en_GB.UTF-8"
> > export LC_COLLATE="C"
>
> I have not exported any locale in my ~/.bashrc, so should a plain user
> locale reflect what's in /etc/env.d/02locale?
>
> I added /etc/env.d/02locale as you show above, but my plain user still
> shows all settings as "en_US.UTF-8" ... where is this US setting read
> from?
Oops! This is more complicated that I thought ...
If, always as a plain user, I use aterm then /etc/env.d/02locale is read and
LANG is en_GB.UTF-8. However, if I use xterm it is still LANG=en_US.UTF-8
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-06-26 10:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-22 1:14 [gentoo-user] Questions regarding the usage of multiple locales Christopher Swift
2010-06-22 13:38 ` Mick
2010-06-22 16:14 ` Christopher Swift
2010-06-26 10:40 ` Mick
2010-06-26 10:49 ` Mick [this message]
2010-06-26 11:10 ` Alex Schuster
2010-06-26 11:29 ` Mick
2010-06-26 11:59 ` Alex Schuster
2010-06-26 12:20 ` William Kenworthy
2010-06-26 12:38 ` Mick
2010-06-26 12:43 ` William Kenworthy
2010-06-26 13:54 ` Mick
2010-06-26 13:41 ` Christopher Swift
2010-06-26 12:54 ` Joerg Schilling
2010-06-25 18:05 ` Enrico Weigelt
[not found] <eY0jD-8ts-9@gated-at.bofh.it>
[not found] ` <eZBh8-2es-7@gated-at.bofh.it>
[not found] ` <eZBAu-2R1-5@gated-at.bofh.it>
[not found] ` <eZBTP-3dF-1@gated-at.bofh.it>
2010-06-26 15:27 ` David W Noon
2010-06-26 15:40 ` Dale
2010-06-26 17:17 ` Mick
[not found] <eZFup-8qx-3@gated-at.bofh.it>
[not found] ` <eZFup-8qx-5@gated-at.bofh.it>
[not found] ` <eZFup-8qx-7@gated-at.bofh.it>
[not found] ` <eZFup-8qx-9@gated-at.bofh.it>
[not found] ` <eZFup-8qx-1@gated-at.bofh.it>
[not found] ` <eZFNL-m1-7@gated-at.bofh.it>
2010-06-26 17:37 ` David W Noon
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=201006261149.20507.michaelkintzios@gmail.com \
--to=michaelkintzios@gmail.com \
--cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox