Re: [tex-live] Whitespace in file name with all but plain TeX fails
On 2005-10-11 07:01:53 +0900, Akira Kakuto wrote:
Indeed, I confirm that pdfetex 'v er.tex' works in TL 2004 and fails with the current TL pdfetex (both i386-linux). The error message is:
! I can't find file `"v er.tex"'.
On Windows, pdfetex "v er.tex" is OK. Please check char *makecfilename(strnumber s) in utils.c, where I find #ifdef WIN32.
Is this by chance bug #377 again? :-( Best Martin PS: Followup -> ntg-pdftex -- http://www.tm.oneiros.de
On 2005-10-11 01:43:25 +0200, Martin Schröder wrote:
Is this by chance bug #377 again? :-(
Seems so. At least it worked in 1.30.0-rc1, but is broken since rc2. :-( Best Martin -- http://www.tm.oneiros.de
Martin Schröder writes:
On 2005-10-11 07:01:53 +0900, Akira Kakuto wrote:
Indeed, I confirm that pdfetex 'v er.tex' works in TL 2004 and fails with the current TL pdfetex (both i386-linux). The error message is:
! I can't find file `"v er.tex"'.
On Windows, pdfetex "v er.tex" is OK. Please check char *makecfilename(strnumber s) in utils.c, where I find #ifdef WIN32.
Is this by chance bug #377 again? :-(
Best Martin
PS: Followup -> ntg-pdftex
In pdftex.ch: @x 11447 @d append_to_name(#)==begin c:=#; if not (c="""") then begin incr(k); if k<=file_name_size then name_of_file[k]:=xchr[c]; end end @y @d append_to_name(#)==begin c:=#; if not (c="""") or not is_quote_bad then begin incr(k); if k<=file_name_size then name_of_file[k]:=xchr[c]; end end @z In utils.c: boolean isquotebad() { #ifdef WIN32 return true; #else return false; #endif } On non-WIN32 this means that append_to_name effectively becomes begin c:=#; if true then begin incr(k); if k<=file_name_size then name_of_file[k]:=xchr[c]; end end So the quotes aren't stripped from quoted filenames, and the file becomes unfindable as a result. Try the following diff: Index: pdftexdir/pdfstrcmp.ch =================================================================== RCS file: /usr/local/cvsroot/texk/texk/web2c/pdftexdir/pdfstrcmp.ch,v retrieving revision 1.1 diff -u -r1.1 pdfstrcmp.ch --- pdftexdir/pdfstrcmp.ch 27 Jul 2005 08:17:45 -0000 1.1 +++ pdftexdir/pdfstrcmp.ch 11 Oct 2005 16:34:49 -0000 @@ -442,17 +442,6 @@ job_name_code: print(job_name); @z -@x 11447 -@d append_to_name(#)==begin c:=#; if not (c="""") then begin incr(k); - if k<=file_name_size then name_of_file[k]:=xchr[c]; - end end -@y -@d append_to_name(#)==begin c:=#; if not (c="""") or not is_quote_bad - then begin incr(k); - if k<=file_name_size then name_of_file[k]:=xchr[c]; - end end -@z - %*********************************************************************** @x 32168 Index: pdftexdir/pdftex.ch =================================================================== RCS file: /usr/local/cvsroot/texk/texk/web2c/pdftexdir/pdftex.ch,v retrieving revision 1.17 diff -u -r1.17 pdftex.ch --- pdftexdir/pdftex.ch 10 Sep 2005 08:43:42 -0000 1.17 +++ pdftexdir/pdftex.ch 11 Oct 2005 16:37:00 -0000 @@ -3988,7 +3988,7 @@ @
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,
On 2005-10-11 18:50:43 +0200, Olaf Weber wrote:
Specifically addressing #377, this should work:
Thanks! I'll most likely do a new release (1.30.4) with this patch, but I won't have time for this till Saturday. If there are any other _bugs_ that need fixing, now is the time. :-) Best Martin -- http://www.tm.oneiros.de
The following may be of interest: ---------------------- ==> http://heirloom.sourceforge.net/doctools.html About: The Heirloom Documentation Tools package provides troff, nroff, and related utilities to format manual pages and other documents for output on terminals and printers. ... Changes: Support for OpenType fonts has been added. This includes support for CFF-based (PostScript) OpenType fonts as well as support for most TrueType fonts. The new "otfdump" utility prints the contents of OpenType font files just as troff interprets it. OpenType features, such as small capitals or old-style numerals, can be accessed using the new ".feature" request. ... ---------------------- ...Rolf
Quoting Olaf Weber
Olaf Weber writes:
Martin Schröder writes:
Is this by chance bug #377 again? :-(
Try the following diff:
[...]
I applied both patches on my FC4 linux system. A quick test confirms the white space in filename problem is solved. -- George N. White III Head of St. Margarets Bay, Nova Scotia
participants (4)
-
George White
-
Martin Schröder
-
Olaf Weber
-
Rolf.Niepraschk@ptb.de