\pdffilesize and spaces

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Oct 18 23:00:03 CEST 2019


On 18/10/2019 18:40, Joseph Wright wrote:
> Hello all,
> 
> Tracking down the cause of 
> https://tex.stackexchange.com/questions/512768, I spot a bug in 
> \pdffilesize. This leads If you create a file "file_1.tex" and try
> 
> \edef\test{\pdffilesize{file_1.tex}}\show\test
> \edef\test{\pdffilesize{file_1.tex }}\show\test
> \edef\test{\pdffilesize{"file_1.tex "}}\show\test

To be clear, I expected


 > \test=macro:
-><size of file_1.tex>.
l.1 \edef\test{\pdffilesize{file_1.tex}}\show\test

?
 > \test=macro:
->.
l.2 \edef\test{\pdffilesize{file_1.tex }}\show\test

?
 > \test=macro:
->.
l.2 \edef\test{\pdffilesize{"file_1.tex "}}\show\test

as I don't have the file with a space in the name.

Joseph


More information about the tex-live mailing list