Now the problem from File names with spaces stopped working in \includepdf and \includegraphics in TeX Live 2016 if compiled with LuaLaTeX has arrived to XeLaTeX.
After upgrading my system (to NixOS 20.03) and TeX Live distribution (to TeX Live 2019), I can no longer use file names with spaces in \includegraphics or \includepdf (from pdfpages) using grffile package if I compile with XeLaTeX.
Here is a minimal broken example:
\documentclass{article}
\usepackage{grffile} % Extended file name support for graphics
\usepackage{graphics}
\begin{document}
\includegraphics{a b.pdf}
\end{document}
Error:
LaTeX Warning: File `a b.pdf' not found on input line 6.
! Unable to load picture or PDF file 'a'.
<to be read again>
b
l.6 \includegraphics{a b.pdf}
Why does it not work anymore?
Note: it still works with pdflatex.
\usepackage{grffile}. – Alexey Mar 02 '20 at 16:30Version: 2017/06/30 v1.18ofgrffile. My TeX Live installation is managed by Nix package manager. Maybe i should submit an issue report. – Alexey Mar 02 '20 at 16:59pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/NixOS.org). – Alexey Mar 02 '20 at 19:17LaTeX2e <2020-02-02> patch level 5in the log. – Ulrike Fischer Mar 02 '20 at 19:19LaTeX2e <2019-10-01> patch level 1. – Alexey Mar 02 '20 at 19:25