[LyX/master] 2006-09-14 Enrico Forestieri <forenr at lyx.org>

Juergen Spitzmueller spitz at lyx.org
Thu Apr 9 07:04:24 UTC 2020


commit 8e60fcf53016679e2167f871a4c1d9df7a40c142
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Thu Apr 9 09:22:02 2020 +0200

    2006-09-14 Enrico Forestieri <forenr at lyx.org>
    
    * dt2dv.c: Handle non-ASCII characters.
    
    See https://www.lyx.org/trac/ticket/2836
---
 3rdparty/dtl/dt2dv.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/3rdparty/dtl/dt2dv.c b/3rdparty/dtl/dt2dv.c
index bcec4a0..f8a057d 100644
--- a/3rdparty/dtl/dt2dv.c
+++ b/3rdparty/dtl/dt2dv.c
@@ -6,12 +6,13 @@
    The author has expressed the hope that any modification will retain enough content to remain useful. He would also appreciate being acknowledged as the original author in the documentation.
    This declaration added 2008/11/14 by Clea F. Rees with the permission of Geoffrey Tobin.
 
-   - version 0.6.1 - 14:38 GMT +11  Thu 9 March 1995
+   - version 0.6.2 - 14 September 2005
    - Geoffrey Tobin    G.Tobin at ee.latrobe.edu.au
    - fixes:  Michal Tomczak-Jaegermann    ntomczak at vm.ucs.ualberta.ca
              Nelson H. F. Beebe    beebe at math.utah.edu
 	     Angus Leeming leeming at lyx.org: Enable dt2dv to handle .dvi files
                  containing strings longer than 1024 chars.
+             Enrico Forestieri forenr at lyx.org: handle non-ASCII characters.
    - Reference:  "The DVI Driver Standard, Level 0",
                  by  The TUG DVI Driver Standards Committee.
                  Appendix A, "Device-Independent File Format".
@@ -42,7 +43,7 @@ typedef struct
   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];
@@ -1097,7 +1098,7 @@ read_char
       dinfo();
       status = 0;
     }
-    else if ( ! isprint (c) && ! isspace (c))
+    else if ( ! isprint (c & 0x7f) && ! isspace (c))
     {
       PRINT_PROGNAME;
       fprintf (stderr,


More information about the lyx-cvs mailing list