sorting russian text; perl
Hi all,
about one month ago there were posting about locale's usage under
perl. I tried to use it for sorting russian, but it did not work for me.
Is there any additional tricks beside setting LANG=ru_RU; export LANG? I
used /usr/share/keytables/ru.map for inputing some russian text. Hope this
corresponds to koi8 coding.
Thanks forward,
Eugene.
On 20 Nov 1998, Torsten Hilbrich wrote:
>
> I tried it with the following little sorting program:
>
> use locale;
>
> my @ARRAY;
> my $i;
>
> while(<>) {
> push @ARRAY, $_;
> }
> for $i (sort @ARRAY) {
> print $i;
> }
>
> and it work perfectly (in my case treating ö like o). At least perl
> is aware of locales.
>
> Torsten
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
Reply to: