summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/lang.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 1de345c3b..ced60d996 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -682,10 +682,13 @@ my %IM2packages = (
sub IM2packages {
my ($locale) = @_;
my $im = $locale->{IM};
- return if $im eq "None";
- my $lang = analyse_locale_name($locale->{lang})->{main};
- my $packages = $IM2packages{$im}{$lang} || $IM2packages{$im}{generic};
- return $packages ? @$packages : $im;
+ if ($im eq "None") {
+ ();
+ } else {
+ my $lang = analyse_locale_name($locale->{lang})->{main};
+ my $l = $IM2packages{$im}{$lang} || $IM2packages{$im}{generic} || [ $im ];
+ @$l;
+ }
}
# enable to select extra SCIM combinaisons: