From ad6038284280318d5569b8dc9ff0a15c13ff54d7 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Tue, 20 Mar 2001 20:30:22 +0000 Subject: fix no_NO --- scripts/genlocalelist | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'scripts') diff --git a/scripts/genlocalelist b/scripts/genlocalelist index 2781c3605..0128d2cd2 100755 --- a/scripts/genlocalelist +++ b/scripts/genlocalelist @@ -75,24 +75,19 @@ while () { $lang=$_; $lang =~ s/eucjp/eucJP/; - open(INFO, "LANG=$lang locale -c language -c territory -k charmap|"); - ; + # 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 = ; - ; $territory = ; - ; $charmap = ; 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; -- cgit