summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-03-20 20:30:22 +0000
committerMatt Wilson <msw@redhat.com>2001-03-20 20:30:22 +0000
commitad6038284280318d5569b8dc9ff0a15c13ff54d7 (patch)
treed3d40e472f4a32bc87c5850842de9cbcefa72ad5 /scripts
parentb6c9289f13ece092553c1488411c848bd010f0e5 (diff)
downloadanaconda-ad6038284280318d5569b8dc9ff0a15c13ff54d7.tar.gz
anaconda-ad6038284280318d5569b8dc9ff0a15c13ff54d7.tar.xz
anaconda-ad6038284280318d5569b8dc9ff0a15c13ff54d7.zip
fix no_NO
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genlocalelist15
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;