summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-03-17 16:30:08 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-03-17 16:30:08 +0000
commit19816396128e6594495eec6a7dfbe98b9005e59a (patch)
tree4945824f48f2864875d385a106af1d22d4b704ba /perl-install
parentde37de57d0f160e379bcdd0119764d8e1bca6c2e (diff)
downloaddrakx-19816396128e6594495eec6a7dfbe98b9005e59a.tar
drakx-19816396128e6594495eec6a7dfbe98b9005e59a.tar.gz
drakx-19816396128e6594495eec6a7dfbe98b9005e59a.tar.bz2
drakx-19816396128e6594495eec6a7dfbe98b9005e59a.tar.xz
drakx-19816396128e6594495eec6a7dfbe98b9005e59a.zip
(set_l10n_sort) do not bother touch LC_ALL
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/common.pm4
1 files changed, 1 insertions, 3 deletions
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");
}