csindex RPMs - prosim vyzkousejte

Zdenek Salvet salvet na ics.muni.cz
Pondělí Červenec 13 16:19:29 CEST 1998


> 	Hmm. Tohle neni chyba v tom RPMku, ale primo v csindexu.
> Ted zrovna nemam cas se v csindexu hrabat, ale davam Cc: do konference
> CsTeX, treba nekdo bude neco vedet. Pripominam, ze zdrojaky
> csindexu i Linuxovy zdrojovy i binarni RPM soubor jsou v adresari
> ftp://ftp.fi.muni.cz/pub/localization/csindex/

Aplikujte nasledujici diff na soubor csindex.c a regenerujte binarni verze
(cely csindex.c je v anxur:/tmp/csindex.c). 

--- csindex/csindex.c   Mon Jun 16 19:37:55 1997
+++ csindex.c   Mon Jul 13 16:09:50 1998
@@ -189,17 +189,31 @@
 int cslower (int ch) {
 char *p;
 if (!cscode) return tolower(ch);
+  switch (ch) {
+  case 220: 
+  case 252: return 220; break;
+  case 221: 
+  case 253: return 221; break;
+  default:
 if (p = strchr((char*)Same, ch)) ch = SameAs[p-(char*)Same];
 if (ch & 0x80) return isupper(ch&0x7f) ? ch : ch ^ 32;
 return tolower(ch);
+  }
 }
 
 int csupper (int ch) {
 char *p;
 if (!cscode) return toupper(ch);
+  switch (ch) {
+  case 220: 
+  case 252: return 252; break;
+  case 221: 
+  case 253: return 253; break;
+  default:
 if (p = strchr((char*)Same, ch)) ch = SameAs[p-(char*)Same];
 if (ch & 0x80) return isupper(ch&0x7f) ? ch ^ 32 : ch;
  else return toupper(ch);
+}
 }
 
#if __TURBOC__


-- 
Zdenek Salvet                                              salvet na ics.muni.cz 
----------------------------------------------------------------------------
           If God had meant for us to be in the Army,
         we would have been born with green, baggy skin.


Další informace o konferenci Linux