diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-03-10 13:59:30 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-03-10 13:59:30 +0000 |
commit | 77278a698e503fb739989843801f7b70a64630d2 (patch) | |
tree | 59a4b470a702510cf99cd3cd252d3b16567532f8 /perl-install/lang.pm | |
parent | c8dcff773a3a536db1561689000b4d973d988af4 (diff) | |
download | drakx-77278a698e503fb739989843801f7b70a64630d2.tar drakx-77278a698e503fb739989843801f7b70a64630d2.tar.gz drakx-77278a698e503fb739989843801f7b70a64630d2.tar.bz2 drakx-77278a698e503fb739989843801f7b70a64630d2.tar.xz drakx-77278a698e503fb739989843801f7b70a64630d2.zip |
fix original #2842 problem
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r-- | perl-install/lang.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm index 858d61640..e51e45fba 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -806,6 +806,13 @@ sub langsLANGUAGE { uniq(map { split ':', getLANGUAGE($_, $c) } langs($l)); } +sub langs_selected { + my ($locale) = @_; + #- adding the UTF-8 flag (if not forced) depends on the selected languages + $locale->{utf8} ||= l2charset($locale->{lang}) =~ /utf|unicode/ + || (uniq map { l2charset($_) } langs($locale->{langs})) > 1; +} + sub pack_langs { my ($l) = @_; my $s = $l->{all} ? 'all' : join ':', uniq(map { getLANGUAGE($_) } langs($l)); @@ -849,8 +856,6 @@ sub write { $locale && $locale->{lang} or return; - $locale->{utf8} ||= l2charset($locale->{lang}) =~ /utf|unicode/ - || (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}); |