On Thu, Sep 14, 2006 at 09:10:08PM +0200, Joost Verburg wrote:
> Uwe Stöhr wrote:
> >The problem occured in february this year when MiKTeX changed the 
> >hyperref driver to dvips as this was recommended by the LaTeX people. 
> >(TeXLive uses dvips as driver for years). Unfortunately the dt2dv/dv2dt 
> >programs used by clean_dv.py stumble over this.
> 
> So what are we going to do for the 1.4.3 release? Is anyone going to fix 
> dt2dv and dv2dt?

The attached patch fixes the problem reported by Uwe. I am afraid but
with mingw/cygwin the setlocale() thing doesn't really work, so I always
assume iso-8859-1 (latin1).

-- 
Enrico
--- dt2dv.c.orig        2006-05-05 12:16:02.000000000 +0200
+++ dt2dv.c     2006-09-14 23:19:24.000000000 +0200
@@ -36,7 +36,7 @@
   size_t max;   /* capacity of buf */
   S4 wrote;     /* number of characters written into buf */
   size_t read;  /* position in buf of next character to read from buf */
-  char * buf;   /* line buffer */
+  unsigned char * buf;   /* line buffer */
 } Line;
 
 char linebuf[MAXLINE+1];
@@ -1091,7 +1091,7 @@
       dinfo();
       status = 0;
     }
-    else if ( ! isprint (c) && ! isspace (c))
+    else if ( ! isprint (c & 0x7f) && ! isspace (c))
     {
       PRINT_PROGNAME;
       fprintf (stderr,

Reply via email to