Re: Key Error: language en_US not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 18 Jul 2001, ext Martin Hicks wrote:
>
> Hello,
>
> (If this is the wrong list for this type of question please point me in the right direction)
>
> I'm doing some combination of kickstart and hacks to anaconda to make the installer do what
> I want.  I have made a few changes to anaconda (mostly in the area of partitioning).
> Now I've rebuild anaconda, and rebuild the redhat installer (genhdlist...buildinstall...)
> with the new version of anaconda.  Now it reads the kickstart file, does the %pre section
> then dies with the error:
>
> KeyError: language en_US not found.  ("/usr/lib/anaconda/todo.py", line 396, in
> getLangNameByNick)
>
> Does anyone know why en_US would all of a sudden not be found.  I have really not touched
> todo.py at all, and have not touched anything to do with locales or languages.
>
> If I use the stock anaconda, everything works.  If I use the stock anaconda, but rebuilt by
> me it doesn't work.

I had the same problem on RH7.1 when I rebuilt Anaconda, the genlocalelist
script doesn't work - this is the answer and fix I got from
redhat-devel-list (which by the way is a better place for questions like
modifying anaconda):

-------------
This is because they added UTF-8 locales to glibc just before the 7.1
release... grab the genlocalelist from a rawhide anaconda, it'll work -
or just patch it up:

diff -ru anaconda/scripts/genlocalelist
anaconda-xfs/scripts/genlocalelist
--- anaconda/scripts/genlocalelist      Tue Mar 20 14:30:22 2001
+++ anaconda-xfs/scripts/genlocalelist  Fri Jun 29 09:51:03 2001
@@ -89,6 +89,9 @@
     chop $territory;
     chop $charmap;

+    # We don't want UTF-8.
+    ($charmap eq "UTF-8") && next;
+
     # Some languages name's are the same as their ISO id's!
     ($name eq substr($lang, 0, 2)) && next;

-Eric


>
> TIA
> mh
>
>





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux