Re: sorting russian text; perl

1998-12-14 Thread Damon Buckwalter
Marcus Brinkmann wrote:
 
 On Sat, Dec 12, 1998 at 11:13:09PM +0400, 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.
 
 Maybe try setting LC_ALL too?

I believe 'man perllocale' has all of the answers.

--
[EMAIL PROTECTED] -- PGP and GPG public keys at http://meta-x.net/keys/


solved; Re: sorting russian text; perl

1998-12-14 Thread Eugene Sevinian

Thanks for info. Finally I found the solution. The problem was that
correct language setting is ru_SU which is not supported under hamm.
Do not know about slink. 

Eugene.

On Sun, 13 Dec 1998, Damon Buckwalter wrote:

 Marcus Brinkmann wrote:
  
  On Sat, Dec 12, 1998 at 11:13:09PM +0400, 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.
  
  Maybe try setting LC_ALL too?
 
 I believe 'man perllocale' has all of the answers.
 
 --
 [EMAIL PROTECTED] -- PGP and GPG public keys at http://meta-x.net/keys/
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

Eugene Sevinian


CRD, YerPhI, 375036, Armenia
URL: http://crdlx5.yerphi.am/
Phone: 374-2-344873


Re: sorting russian text; perl

1998-12-13 Thread Marcus Brinkmann
On Sat, Dec 12, 1998 at 11:13:09PM +0400, 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. 

Maybe try setting LC_ALL too?

Just guessing,
Marcus

-- 
Rhubarb is no Egyptian god.Debian GNU/Linuxfinger brinkmd@ 
Marcus Brinkmann   http://www.debian.orgmaster.debian.org
[EMAIL PROTECTED]for public  PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/   PGP Key ID 36E7CD09


sorting russian text; perl

1998-12-12 Thread Eugene Sevinian

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 [EMAIL PROTECTED]  /dev/null