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
 



Re: sorting russian text

1998-11-23 Thread Eugene Sevinian
On 22 Nov 1998, Torsten Hilbrich wrote:

 On: 20 Nov 1998 20:58:52 +0100 Ole J Tetlie writes:
 
  | I have checked my sort command (version 1.22) for the value de_DE
  | for LANG and it didn't work either.
  | 
  | I checked the documentation for both sort and the fileutils and
  | couldn't find any mentioning of locale support.  So it seems to me
  | that it is simply not supported.
 
  I also wrote a small test using both strcoll and strcmp, and they
  gave the same result in all cases (with no_NO). Perhaps libc is at
  fault.
 
 The locales need to be enabled using the setlocale(3) function.
 
BTW, there is such string in sort.c: setlocale (LC_ALL, );
However, it seems that it is not enough :(


Eugene Sevinian


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


Re: sorting russian text

1998-11-22 Thread Torsten Hilbrich
On: 20 Nov 1998 20:58:52 +0100 Ole J Tetlie writes:

 | I have checked my sort command (version 1.22) for the value de_DE
 | for LANG and it didn't work either.
 | 
 | I checked the documentation for both sort and the fileutils and
 | couldn't find any mentioning of locale support.  So it seems to me
 | that it is simply not supported.

 I also wrote a small test using both strcoll and strcmp, and they
 gave the same result in all cases (with no_NO). Perhaps libc is at
 fault.

The locales need to be enabled using the setlocale(3) function.

Torsten


Re: sorting russian text

1998-11-20 Thread Torsten Hilbrich
On: Thu, 19 Nov 1998 22:17:09 +0400 (AMT) Eugene Sevinian writes:
 
 Hi, 
 As I am working now on a multilingual text proccesing system I tried
 to use 'sort' for this purpose. From man bash I have read that the
 LANG variabale is responsible for local language setting.  Assuming
 ru_RU is appropriate variable I set LANG=ru_RU; export LANG, but :((
 nothing had changed at all. Should I do something else?  Help me,
 please!

I have checked my sort command (version 1.22) for the value de_DE for
LANG and it didn't work either.

I checked the documentation for both sort and the fileutils and
couldn't find any mentioning of locale support.  So it seems to me
that it is simply not supported.

I tried it with perl and 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


Re: sorting russian text

1998-11-20 Thread Ole J. Tetlie
*-Torsten Hilbrich [EMAIL PROTECTED]
|
| On: Thu, 19 Nov 1998 22:17:09 +0400 (AMT) Eugene Sevinian writes:
|  
|  Hi, 
|  As I am working now on a multilingual text proccesing system I tried
|  to use 'sort' for this purpose. From man bash I have read that the
|  LANG variabale is responsible for local language setting.  Assuming
|  ru_RU is appropriate variable I set LANG=ru_RU; export LANG, but :((
|  nothing had changed at all. Should I do something else?  Help me,
|  please!
| 
| I have checked my sort command (version 1.22) for the value de_DE for
| LANG and it didn't work either.
| 
| I checked the documentation for both sort and the fileutils and
| couldn't find any mentioning of locale support.  So it seems to me
| that it is simply not supported.

I also wrote a small test using both strcoll and strcmp, and they
gave the same result in all cases (with no_NO). Perhaps libc is
at fault.

-- 
...Unix, MS-DOS, and MS Windows (also known as the Good, the Bad,
and the Ugly).   (Matt Welsh)
[EMAIL PROTECTED]   [-: .elOle. :-]   [EMAIL PROTECTED]


sorting russian text

1998-11-19 Thread Eugene Sevinian
Hi, 
As I am working now on a multilingual text proccesing system I tried
to use 'sort' for this purpose. From man bash I have read that the LANG
variabale is responsible for local language setting.  Assuming ru_RU is
appropriate variable I set LANG=ru_RU; export LANG, but :(( nothing had
changed at all. Should I do something else?
Help me, please!

TIA,
Eugene Sevinian


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