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?
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.
we don't have it in the handbook, either: http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=8§=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.
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.
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.
https://wiki.gentoo.org/wiki/Localization/HOWTO#Generating_Specific_Locales ^^ correct ^^
Thanks; updated in CVS, should show up on the site in an hour or so.