public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Bo Ørsted Andresen" <bo.andresen@zlin.dk>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] locales questions
Date: Mon, 4 Dec 2006 21:12:22 +0100	[thread overview]
Message-ID: <200612042112.32836.bo.andresen@zlin.dk> (raw)
In-Reply-To: <5bdc1c8b0612041133w192397cega270af3bcc74afe4@mail.gmail.com>

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

On Monday 04 December 2006 20:33, Mark Knecht wrote:
[SNIP]
>    Reading the localization and quick install guides I've become a bit
> more confused. The localization guide says the LC_* settings are done
> in /etc/env.d/02locale but this doesn't exist here, not even after
> running locale-gen:
[SNIP]

Setting LANG in 02locale is preferred over setting LC_ALL since that allows 
you to override it with LC_ALL on the command line. And no, it isn't 
generated automatically. You must create this file by yourself. After that 
you need to run `env-update && source /etc/profile`.

> The current contents of locales.build are shown here. Seems fairly
> generic but what do I know? ;-)
>
> lightning ~ # cat /etc/locales.build
[SNIP]
> en_US/ISO-8859-1
> en_US.UTF-8/UTF-8
> lightning ~ #

The syntax of locale.gen is more strict than the syntax of locales.build. The 
above is valid for locales.build. In locale.gen it must be:

# cat /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8

You must create that file and remove locales.build manually before running 
locale-gen. locale-gen told you that if you bothered to read it...:

[SNIP]
>  * You should upgrade your /etc/locales.build to /etc/locale.gen
>  * and then remove /etc/locales.build when you're done.
>
>  * Automatically importing locales from /etc/locales.build ...
>  * You really should do this yourself ...
[SNIP]

Finally `locale -a` will show you valid values for LANG and LC_*.

# locale -a
en_US
en_US.utf8

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-12-04 20:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-04 18:30 [gentoo-amd64] locales questions Mark Knecht
2006-12-04 18:44 ` Bo Ørsted Andresen
2006-12-04 19:33   ` Mark Knecht
2006-12-04 20:12     ` Bo Ørsted Andresen [this message]
2006-12-05 20:08       ` Mark Knecht
2006-12-05 20:22         ` Bo Ørsted Andresen
2006-12-05 21:27           ` Mark Knecht
2006-12-05 21:59             ` Bo Ørsted Andresen

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=200612042112.32836.bo.andresen@zlin.dk \
    --to=bo.andresen@zlin.dk \
    --cc=gentoo-amd64@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