diff options
author | Matt Wilson <msw@redhat.com> | 2001-03-20 20:30:22 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-03-20 20:30:22 +0000 |
commit | ad6038284280318d5569b8dc9ff0a15c13ff54d7 (patch) | |
tree | d3d40e472f4a32bc87c5850842de9cbcefa72ad5 /scripts | |
parent | b6c9289f13ece092553c1488411c848bd010f0e5 (diff) | |
download | anaconda-ad6038284280318d5569b8dc9ff0a15c13ff54d7.tar.gz anaconda-ad6038284280318d5569b8dc9ff0a15c13ff54d7.tar.xz anaconda-ad6038284280318d5569b8dc9ff0a15c13ff54d7.zip |
fix no_NO
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/genlocalelist | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/scripts/genlocalelist b/scripts/genlocalelist index 2781c3605..0128d2cd2 100755 --- a/scripts/genlocalelist +++ b/scripts/genlocalelist @@ -75,24 +75,19 @@ while (<FILE>) { $lang=$_; $lang =~ s/eucjp/eucJP/; - open(INFO, "LANG=$lang locale -c language -c territory -k charmap|"); - <INFO>; + # someone put nb_NO in locale.alias. yuck. We don't + # want to offer that. + ("nb_" eq substr($lang, 0, 3)) && next; + + open(INFO, "LANG=$lang locale language territory charmap|"); $name = <INFO>; - <INFO>; $territory = <INFO>; - <INFO>; $charmap = <INFO>; close(INFO); chop $name; - $name =~ s/^[^"]+"//; - $name =~ s/"$//; chop $territory; - $territory =~ s/^[^"]+"//; - $territory =~ s/"$//; chop $charmap; - $charmap =~ s/^[^"]+"//; - $charmap =~ s/"$//; # Some languages name's are the same as their ISO id's! ($name eq substr($lang, 0, 2)) && next; |