summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 7deb012a2..fd591500c 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -840,11 +840,10 @@ sub langsLANGUAGE {
uniq(map { split ':', getLANGUAGE($_, $o_c) } langs($l));
}
-sub langs_selected {
+sub utf8_should_be_needed {
my ($locale) = @_;
- #- adding the UTF-8 flag (if not forced) depends on the selected languages
- $locale->{utf8} ||= l2charset($locale->{lang}) =~ /utf|unicode/
- || uniq(grep { $_ ne 'C' } map { l2charset($_) } langs($locale->{langs})) > 1;
+ l2charset($locale->{lang}) =~ /utf|unicode/
+ || uniq(grep { $_ ne 'C' } map { l2charset($_) } langs($locale->{langs})) > 1;
}
sub pack_langs {