From e702e5f9cf56ceeafd933188615a1a76b199370c Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 10 Feb 2003 13:56:28 +0000 Subject: perl checko files --- perl-install/lang.pm | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'perl-install/lang.pm') diff --git a/perl-install/lang.pm b/perl-install/lang.pm index 9520d862a..f04eefcf7 100644 --- a/perl-install/lang.pm +++ b/perl-install/lang.pm @@ -200,17 +200,17 @@ sub standard_locale { sub getlocale_for_lang { my ($lang, $country, $utf8) = @_; - standard_locale(@_) || l2locale($lang).($utf8 ? '.UTF-8' : ''); + standard_locale($lang, $country, $utf8) || l2locale($lang).($utf8 ? '.UTF-8' : ''); } sub getlocale_for_country { my ($lang, $country, $utf8) = @_; - standard_locale(@_) || c2locale($country).($utf8 ? '.UTF-8' : ''); + standard_locale($lang, $country, $utf8) || c2locale($country).($utf8 ? '.UTF-8' : ''); } sub getLANGUAGE { my ($lang, $country, $utf8) = @_; - l2language($lang) || join(':', uniq(getlocale_for_lang(@_), $lang, if_($lang =~ /^(..)_/, $1))); + l2language($lang) || join(':', uniq(getlocale_for_lang($lang, $country, $utf8), $lang, if_($lang =~ /^(..)_/, $1))); } my %xim = ( @@ -747,15 +747,6 @@ sub fs_options { } } -sub charset { - my ($lang, $prefix) = @_; - my $l = lang2LANG($lang); - foreach (cat_("$prefix/usr/X11R6/lib/X11/locale/locale.alias")) { - /$l:\s+.*\.(\S+)/ and return $1; - } - $l =~ /.*\.(\S+)/ and return $1; -} - sub during_install__l2charset { my ($lang) = @_; return if member($lang, @during_install__lang_having_their_LC_CTYPE); -- cgit v1.2.1