From 8a20dfa8612a1727005c79b932cb33f5f1689182 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 19 Feb 2003 22:21:13 +0000 Subject: I'm stupid, we need to set UTF8 when there are two installed langs with different encodings, not just when the additional languages have different encoding than main one --- perl-install/lang.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/lang.pm') diff --git a/perl-install/lang.pm b/perl-install/lang.pm index b16c8fc5c..298d57860 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -806,7 +806,7 @@ sub write { $locale && $locale->{lang} or return; $locale->{utf8} ||= l2charset($locale->{lang}) =~ /utf|unicode/ - || any { l2charset($_) ne l2charset($locale->{lang}) } langs($locale->{langs}); + || (uniq map { l2charset($_) } langs($locale->{langs})) > 1; my $locale_lang = getlocale_for_lang($locale->{lang}, $locale->{country}, $locale->{utf8}); my $locale_country = getlocale_for_country($locale->{lang}, $locale->{country}, $locale->{utf8}); -- cgit v1.2.1