This bug in MiKTeX is fixed as of 29. March 2012.
I looked briefly at the LuaTeX documenation but could not find any information whether LuaTeX has a problem with special characters in path names. Is this a known bug?
My minimal example looks like this:
\documentclass[a4paper,12pt]{article}
\usepackage{graphicx}
\begin{document}
test test test test
\begin{figure}
\includegraphics{test2.pdf}
\end{figure}
\end{document}
The document compiles nicely with pdfTeX (used to create test2.pdf) but when I run the same file with LuaTeX I get the following error message:
!LuaTeX error (file test2.pdf): PDF inclusion: could not stat() file 'C:/Temp/U mlautÄ/test2.pdf'
The correct path is C:\temp\UmlautÄ and it seems as if LuaTeX (from current MikTeX 2.9) can not handle this correctly. Is this a bug? How can I work around this if my profile path contains an umlaut?
Edit:
I tried \usepackage[utf8]{luainputenc} and \usepackage[encoding,filenameencoding=utf8]{grffile}, both did not change the situation (the source file is UTF8 encoded).
\usepackage[encoding,filenameencoding=utf8]{grffile}– egreg Mar 13 '12 at 21:57