Bo, Hi. I'm sure you're frustrated with me. Sorry. I really am reading these docs but there seem to be things I'm not quite understanding or things missing from the docs. Probably it's just me. Sorry.
On 12/4/06, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote:
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`.
OK, so I've now created 02locale by hand. However I cannot find a document that clearly states what an English only speaker/reader who lives in the U.S. would prefer here. Trying to follow the Eupean centric example on the web page I now have: lightning ~ # cat /etc/env.d/02locale LC_ALL="en" LANG="en" lightning ~ # I hope that's OK. I think the changes took hold: lightning ~ # env-update && source /etc/profile
Regenerating /etc/ld.so.cache...
lightning ~ # env | grep -i LC_ LC_ALL=en lightning ~ # I've added LINGUAS="en" to my make.conf file as required.
> 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...:
I promise - I read that 10 times. It just doesn't read to me that I need to do it by hand even though it seems to say so. Sorry!
[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
OK, but in my case it's still not working quite right: lightning etc # cat /etc/locale.gen en_US ISO-8859-1 en_US.UTF-8 UTF-8 lightning etc # cat /etc/env.d/02locale LC_ALL="en" LANG="en" lightning etc # env-update && source /etc/profile
Regenerating /etc/ld.so.cache...
lightning etc # locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C POSIX en_US en_US.utf8 lightning etc # So, I think I still have work to do here. Again, thanks very much for the help and sorry for being so dense about this. Cheers, Mark -- [email protected] mailing list
