From 19816396128e6594495eec6a7dfbe98b9005e59a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 17 Mar 2005 16:30:08 +0000 Subject: (set_l10n_sort) do not bother touch LC_ALL --- perl-install/common.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install/common.pm') diff --git a/perl-install/common.pm b/perl-install/common.pm index 5c5168c4c..0ab71e53f 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -84,9 +84,7 @@ sub untranslate { sub set_l10n_sort() { my $collation_locale = $ENV{LC_ALL}; - if ($collation_locale) { - $collation_locale =~ /UTF-8/ or setlocale(LC_ALL, "$collation_locale.UTF-8"); - } else { + if (!$collation_locale) { $collation_locale = setlocale(LC_COLLATE); $collation_locale =~ /UTF-8/ or setlocale(LC_COLLATE, "$collation_locale.UTF-8"); } -- cgit v1.2.1