Diff for /db/prgsrc/eq/Attic/findequal.pl between versions 1.1 and 1.10

version 1.1, 2001/05/18 01:37:51 version 1.10, 2001/08/04 11:41:50
Line 32  use POSIX qw (locale_h); Line 32  use POSIX qw (locale_h);
   
 do "common.pl";  do "common.pl";
   
   my ($thislocale);
   if ($^O =~ /win/i) {
           $thislocale = "Russian_Russia.20866";
   } else {
           $thislocale = "ru_RU.KOI8-R";
   }
   POSIX::setlocale( &POSIX::LC_ALL, $thislocale );
   if ((uc 'Á') ne 'á') {die "!Koi8-r locale not installed!\n"};
   
   
   
   if ((uc 'Á') ne 'á') {die "!Koi8-r locale not installed!\n"};
   
   
   
 if (checktable('equalto')) {die "The table equalto exists. You must delete it first!\n"};  if (checktable('equalto')) {die "The table equalto exists. You must delete it first!\n"};
   
   if ((uc 'Á') ne 'á') {die "!Koi8-r locale not installed!\n"};
   
   
   
 print "Creating equalto table...\n";  print "Creating equalto table...\n";
   
         mydo("CREATE TABLE equalto (          mydo("CREATE TABLE equalto (
Line 44  print "Creating equalto table...\n"; Line 63  print "Creating equalto table...\n";
         or die "Can't create equalto table: $!\n";          or die "Can't create equalto table: $!\n";
   
   
   if ((uc 'Á') ne 'á') {die "!Koi8-r locale not installed!\n"};
   print "before getbase";
   
 getbase(QuestionId,Question);  getbase(QuestionId,Question);
   
   
   print "after getbase";
   
 print "Loading questions...\n";  print "Loading questions...\n";
   
Line 60  while ((($id, $a) = getrow), $id) Line 82  while ((($id, $a) = getrow), $id)
         $a=~s/³£pPHXxAaBEe3KMoOT/åÅÒòîèÈáÁ÷åÅúëíÏïô/;          $a=~s/³£pPHXxAaBEe3KMoOT/åÅÒòîèÈáÁ÷åÅúëíÏïô/;
         $a=uc $a;          $a=uc $a;
   
         $a=~s/[^êãõëåîçûýúèÿüöäìïòðá÷ùæñþóíéôøâà]//g;          $a=~s/[^êãõëåîçûýúèÿüöäìïòðá÷ùæñþóíéôøâàÊÃÕËÅÎÇÛÝÚÈßÆÙ×ÁÐÒÏÌÄÖÜÑÞÓÍÉÔØÂÀ]//g;
         $ar[$id]=$a;          $ar[$id]=$a;
         $last=$id;          $last=$id;
 }  }

Removed from v.1.1  
changed lines
  Added in v.1.10


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>