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: pgpxfBQ2YXE0F.pgp
Description: PGP signature

Reply via email to