Bug 38688

Summary: genlocalelist generates invalid locale-list file on rebuild
Product: [Retired] Red Hat Linux Reporter: Michael Jennings (KainX) <mej>
Component: anacondaAssignee: Brent Fox <bfox>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: low    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-02 15:01:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Jennings (KainX) 2001-05-02 00:39:42 UTC
If one attempts to rebuild anaconda from an SRPM on 7.1, the resulting
locale-list file contains only 4 languages, and notably does *not* contain
any English entries at all.  The simple one-line patch below fixes the
error.  Not a huge issue...just a heads-up. :-)

diff -Nur anaconda-7.1/scripts/genlocalelist 
anaconda-7.1.new/scripts/genlocalelist
--- anaconda-7.1/scripts/genlocalelist	Tue Mar 20 12:30:22 2001
+++ anaconda-7.1.new/scripts/genlocalelist	Tue May  1 14:55:26 2001
@@ -106,6 +106,7 @@
 
 for $key (keys %langList) {
     $langName = $langList{$key};
+    next if (!defined($charMap{$charmapList{$key}}));
     if ($nameList{$langName}) {
 	# we have a conflict. longest wins
 	if (length($key) > length($nameList{$langName})) {

Comment 1 Brent Fox 2001-05-02 15:01:26 UTC
Thanks for your report.  We ran into this the other day...it has since been
fixed in cvs.  Thanks again.