diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-03-17 15:56:57 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-03-17 15:56:57 +0000 |
commit | 0cef91146e0e1aae2596b68b0aa2d7727cc5ac07 (patch) | |
tree | 87588d25f75b14d2e19a184c41629831c30c3423 | |
parent | 3bf854a89339a1018253a9291409f22524ded5c0 (diff) | |
download | drakx-0cef91146e0e1aae2596b68b0aa2d7727cc5ac07.tar drakx-0cef91146e0e1aae2596b68b0aa2d7727cc5ac07.tar.gz drakx-0cef91146e0e1aae2596b68b0aa2d7727cc5ac07.tar.bz2 drakx-0cef91146e0e1aae2596b68b0aa2d7727cc5ac07.tar.xz drakx-0cef91146e0e1aae2596b68b0aa2d7727cc5ac07.zip |
(ask_from_normalize) use newly introduced set_l10n_sort() in order to
have proper localized sorting (#14634)
-rw-r--r-- | perl-install/interactive.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 982f7fe65..6881847c7 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -340,6 +340,8 @@ sub ask_from_normalize { if (my $li = $e->{list}) { ref($e->{val}) =~ /SCALAR|REF/ or internal_error($e->{val} ? "field {val} must be a reference (it is $e->{val})" : "field {val} is mandatory"); #-# if ($e->{sort} || @$li > 10 && !exists $e->{sort}) { + use locale; + set_l10n_sort(); my @l2 = map { may_apply($e->{format}, $_) } @$li; my @places = sort { $l2[$a] cmp $l2[$b] } 0 .. $#l2; $e->{list} = $li = [ map { $li->[$_] } @places ]; |