summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 3bc6d879a..241cb0a0e 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -1036,7 +1036,9 @@ sub selectCountry {
my $country = $locale->{country};
my @countries = lang::list_countries(exclude_non_installed => !$::isInstall);
my @best = grep {
- lang::locale_to_main_locale(lang::c2locale($_)) eq lang::locale_to_main_locale($locale->{lang});
+ find {
+ lang::locale_to_main_locale($_) eq lang::locale_to_main_locale($locale->{lang});
+ } lang::country_to_locales($_);
} @countries;
@best == 1 and @best = ();