Hi, as I run into this problem and do not how to cope with it, I would like to ask somebody who is workig with russian just to test whether perl supports sorting of russian texts. Torsten sent me a simple script which was working for him.
Any help will be greatly appreciated, TIA, Eugene On Sat, 12 Dec 1998, Eugene Sevinian wrote: > > 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 > >