[tex-live] Bug report for pdfTeX

Hironobu YAMASHITA h.y.acetaminophen at gmail.com
Sat Oct 21 10:23:52 CEST 2017

2017/10/21 9:14, Hironobu Yamashita <h.y.acetaminophen at gmail.com>:

 > On OS X 10.11.6 El Capitan
 > The second and third pdfs are missing "2".

This was my mistake, as I ran the script twice.
That means, only the third pdf is missing "2".


The behavior of -output-directory is described in web2c/lib/openclose.c;

     /* Look in -output-directory first, if the filename is not
        absolute.  This is because .aux and other such files will get
        written to the output directory, and we have to be able to read
        them from there.  We only look for the name as-is.  */
     if (output_directory && !kpse_absolute_p (nameoffile+1, false)) {
         fname = concat3 (output_directory, DIR_SEP_STRING, nameoffile + 1);
         *f_ptr = fopen (fname, fopen_mode);

So, the file name should be as-is (including the file extension).
I'm not sure this is a desirable behavior or not.

The different behavior on win32 is due to the behavior of fopen().
fopen(dirname, "r") returns NULL on Windows, but returns a valid
pointer on Unix file system.

Hironobu Yamashita

More information about the tex-live mailing list