[tex-k] dvipsk 5.86d bug?

Akira Kakuto kakuto@fsci.fuk.kindai.ac.jp
Tue, 09 Jan 2001 16:48:44 +0900


In very rare cases, dvipsk 5.86d crashes when downloading
Type1 fonts (-DSHIFTLOWCHARS). I found the following patch
cured the problem. Sources are those in
http://sun2.dante.de/texlive/Build/source.development/teTeX-1.0/texk/dvipsk/.

Akira
-----------------------------------

--- newprotos.h.orig	Tue Jan 09 16:23:34 2001
+++ newprotos.h	Tue Jan 09 16:25:04 2001
@@ -246,7 +246,7 @@
 extern void figcopyfile P2H(char *s, int systemtype);
 extern void specialout P1H(char c);
 extern void stringend P1H(void);
-extern void scout P1H(char c);
+extern void scout P1H(unsigned char c);
 extern void cmdout P1H(char *s);
 static void chrcmd P1H(char c);
 extern void floatout P1H(double n);
--- output.c.orig	Tue Jan 09 16:23:34 2001
+++ output.c	Tue Jan 09 16:26:44 2001
@@ -576,7 +576,7 @@
 #endif
 
 void
-scout P1C(char, c)   /* string character out */
+scout P1C(unsigned char, c)   /* string character out */
 {
 /*
  *   Is there room in the buffer?  LINELENGTH-6 is used because we
@@ -1405,7 +1405,7 @@
       fontout((int)curfnt->psname) ;
       lastfont = curfnt->psname ;
    }
-   scout(cc) ;
+   scout((unsigned char)cc) ;
    rhh = hh + c->pixelwidth ; /* rvv = rv */
 }
 /*
--- protos.h.orig	Tue Jan 09 16:23:34 2001
+++ protos.h	Tue Jan 09 16:27:14 2001
@@ -200,7 +200,7 @@
 #ifdef SHIFTLOWCHARS
 extern int T1Char P1H(int c);
 #endif
-extern void scout P1H(char c);
+extern void scout P1H(unsigned char c);
 extern void cmdout P1H(char *s);
 extern void floatout P1H(float n);
 extern void doubleout P1H(double n);