Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482284 - locale-gen missing eselect locale list && eselect locale set
Summary: locale-gen missing eselect locale list && eselect locale set
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-24 00:39 UTC by three sixes
Modified: 2013-12-17 10:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description three sixes 2013-08-24 00:39:17 UTC
locale-gen missing eselect locale list && eselect locale set

Reproducible: Always

Steps to Reproduce:
http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml#doc_chap2

Code Listing 2.37: Define locales
mybox ~ # cd /etc
mybox etc # nano -w locale.gen
mybox etc # locale-gen
?????
profit?


Expected Results:  
http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml#doc_chap2

Code Listing 2.37: Define locales
mybox ~ # cd /etc
mybox etc # nano -w locale.gen
mybox etc # locale-gen
mybox etc # eselect locale set 1?
Comment 1 alphis 2013-08-24 02:52:22 UTC
This issue caused a broken PTY when I changed LANG directly in .bash_profile to en_US.utf8.

The handbook should outline the correct way to set locale which involves eselect locale list/set followed by ". /etc/profile" and env-update. After a reboot LANG was properly set.
Comment 2 nm (RETIRED) gentoo-dev 2013-08-24 08:18:58 UTC
we don't have it in the handbook, either:

http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=8&sect=2#doc_chap3_sect3

...however, locale-gen works, always. i'm not sure that the eselect-locale module is installed by default, so locale-gen is the way to go.
Comment 3 Andy Johnson 2013-08-31 22:08:09 UTC
I also ran into trouble with improperly set locale, while debugging an unrelated issue, I had followed the handbook but for some reason eselect locale list had no selected lang.
Comment 4 three sixes 2013-10-14 07:18:31 UTC
locale-gen generates the locale, but fails getting 'locale' to report

LANG=en_US.utf8

ie, locale-gen is 1/2 the answer

eselect locale set en_US.utf8

is the other 1/2 in my case....  eselect locale list & eselect locale set is recursively missing from the handbooks.
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2013-12-17 10:01:51 UTC
Thanks; updated in CVS, should show up on the site in an hour or so.