[NTG-pdftex] Re: [tex-live] Whitespace in file name with all but plain TeX fails

Olaf Weber olaf at infovore.xs4all.nl
Tue Oct 11 18:50:43 CEST 2005


Olaf Weber writes:
> Martin Schröder writes:

>> Is this by chance bug #377 again? :-(

> Try the following diff:

[...]

Specifically addressing #377, this should work:


Index: pdftexdir/writeimg.c
===================================================================
RCS file: /usr/local/cvsroot/texk/texk/web2c/pdftexdir/writeimg.c,v
retrieving revision 1.3
diff -u -r1.3 writeimg.c
--- pdftexdir/writeimg.c	27 Jul 2005 08:17:46 -0000	1.3
+++ pdftexdir/writeimg.c	11 Oct 2005 16:48:47 -0000
@@ -1,5 +1,5 @@
 /*
-Copyright (c) 1996-2002 Han The Thanh, <thanh at pdftex.org>
+Copyright (c) 1996-2002, 2005 Han The Thanh, <thanh at pdftex.org>
 
 This file is part of pdfTeX.
 
@@ -259,20 +259,7 @@
        already used by cur_file_name */
     if (page_name != 0)
       dest = xstrdup(makecstring(page_name));
-    cur_file_name = makecstring(s);
-#ifdef WIN32
-    /* unquote file name */
-    if (*cur_file_name == '"') {
-      char *p = cur_file_name;
-      char *q = cur_file_name;
-      while (p && *p) {
-    *q = (*p == '"' ? *(++p) : *p);
-    p++, q++;
-      }
-      *q = '\0';
-    }
-    fprintf(stderr, " %s\n", cur_file_name);
-#endif
+    cur_file_name = makecfilename(s);
     img_name(img) = kpse_find_file(cur_file_name, kpse_tex_format, true);
     if (img_name(img) == NULL)
         pdftex_fail("cannot find image file");



-- 
Olaf Weber

               (This space left blank for technical reasons.)



More information about the ntg-pdftex mailing list