From: Christopher Swift <christopher.swift@linux.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales
Date: Tue, 22 Jun 2010 17:14:13 +0100 [thread overview]
Message-ID: <1277223253.1816.3.camel@tonmawr> (raw)
In-Reply-To: <AANLkTilGxseqoOcCB1frQbKgLqVg1H-m-umrQTecN3BB@mail.gmail.com>
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"
This will only affect that user but if you want to define a locale globally you have to adjust the file in /etc/env.d/02locale to have the top two lines read this:
LANG="en_GB.UTF-8"
LC_COLLATE="C"
After you've done that do "env-update && source /etc/profile" for the global settings or just source ~/.bashrc for the user's settings.
Hope this helps
--
Cofion
Christopher Swift (ianto) - christopher dot swift at linux dot com
next prev parent reply other threads:[~2010-06-22 17:06 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 [this message]
2010-06-26 10:40 ` Mick
2010-06-26 10:49 ` Mick
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=1277223253.1816.3.camel@tonmawr \
--to=christopher.swift@linux.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