[latex3-commits] [git/LaTeX3-latex3-latex2e] unquote: don't quote filenames until use (2e73b9ed)

David Carlisle d.p.carlisle at gmail.com
Fri Nov 1 22:57:11 CET 2019


Repository : https://github.com/latex3/latex2e
On branch  : unquote
Link       : https://github.com/latex3/latex2e/commit/2e73b9edb24f327455a95aea94914b43d6c21a88

>---------------------------------------------------------------

commit 2e73b9edb24f327455a95aea94914b43d6c21a88
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Fri Nov 1 21:57:11 2019 +0000

    don't quote filenames until use


>---------------------------------------------------------------

2e73b9edb24f327455a95aea94914b43d6c21a88
 base/ltfiles.dtx | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/base/ltfiles.dtx b/base/ltfiles.dtx
index a2037e22..5359aeb8 100644
--- a/base/ltfiles.dtx
+++ b/base/ltfiles.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfiles.dtx}
-             [2019/10/11 v1.2c LaTeX Kernel (File Handling)]
+             [2019/10/26 v1.2d LaTeX Kernel (File Handling)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfiles.dtx}
@@ -758,11 +758,11 @@
 %    
 % \changes{v1.2a}{2019/07/01}{Support UTF-8}
 % \changes{v1.2b}{2019/08/27}{Make command robust}
+% \changes{v1.2d}{2019/10/26}{dont quote name}
 %    \begin{macrocode}
 \DeclareRobustCommand\IfFileExists[1]{%
   \set at curr@file{#1}%
-  \edef\q at curr@file{\expandafter\quote at name\expandafter{\@curr at file}}%
-  \expandafter\IfFileExists@\expandafter{\q at curr@file}}
+  \expandafter\IfFileExists@\expandafter{\@curr at file}}
 %    \end{macrocode}
 %  \end{macro}
 %
@@ -770,10 +770,10 @@
 % \changes{v0.9b}{1993/12/04}{Macro added}
 % \changes{v0.9p}{1994/01/18}{New Definition}
 % \changes{v1.0t}{1995/05/25}{(CAR) added \cs{long}}
-%
+% \changes{v1.2d}{2019/10/26}{quote on openin}%
 %    \begin{macrocode}
 \long\def \IfFileExists@#1#2#3{%
-  \openin\@inputcheck#1 %
+  \openin\@inputcheck\quote at name{#1} %
   \ifeof\@inputcheck
     \ifx\input at path\@undefined
       \def\reserved at a{#3}%
@@ -834,12 +834,13 @@
 %         {(CAR) added \cs{long}}
 % \changes{v1.1d}{1996/01/10}
 %     {Change argument handling to not require doubled hash. latex/2024}
+% \changes{v1.2d}{2019/10/26}{quote on openin}%
 %    \begin{macrocode}
 \long\def\@iffileonpath#1{%
   \let\reserved at a\@secondoftwo
   \expandafter\@tfor\expandafter\reserved at b\expandafter
              :\expandafter=\input at path\do{%
-    \openin\@inputcheck\reserved at b#1 %
+    \openin\@inputcheck\expandafter\quote at name\expandafter{\reserved at b#1} %
     \ifeof\@inputcheck\else
       \edef\@filef at und{\reserved at b#1 }%
       \let\reserved at a\@firstoftwo%





More information about the latex3-commits mailing list