[latex3-commits] [git/LaTeX3-latex3-latex2e] unquote: more consistent unquoting of \@curr at file and quoting of \@filef at und (cfc2ba19)
David Carlisle
d.p.carlisle at gmail.com
Sun Nov 3 20:29:54 CET 2019
Repository : https://github.com/latex3/latex2e
On branch : unquote
Link : https://github.com/latex3/latex2e/commit/cfc2ba19342f6e934139c5d4cc35dd8e7173155d
>---------------------------------------------------------------
commit cfc2ba19342f6e934139c5d4cc35dd8e7173155d
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Sun Nov 3 19:29:54 2019 +0000
more consistent unquoting of \@curr at file and quoting of \@filef at und
>---------------------------------------------------------------
cfc2ba19342f6e934139c5d4cc35dd8e7173155d
base/ltfiles.dtx | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/base/ltfiles.dtx b/base/ltfiles.dtx
index f412f897..d0d33a4c 100644
--- a/base/ltfiles.dtx
+++ b/base/ltfiles.dtx
@@ -714,6 +714,7 @@
%
% \changes{v1.2a}{2019/07/01}{Support UTF-8}
% \changes{v1.2c}{2019/10/11}{Remove one brace group}
+% \changes{v1.2d}{2019/10/26}{remove quotes}
% \begin{macrocode}
%</2ekernel>
%<*2ekernel|latexrelease>
@@ -722,7 +723,9 @@
\def\set at curr@file#1{%
\begingroup
\escapechar\m at ne
- \xdef\@curr at file{\expandafter\string\csname\@firstofone#1\@empty\endcsname}%
+ \xdef\@curr at file{%
+ \expandafter\string
+ \csname\expandafter\unquote at name\expandafter{\@firstofone#1\@empty}\endcsname}%
\endgroup
}
% \end{macrocode}
@@ -771,9 +774,10 @@
% \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}%
+% Argument |#1| is |\@curr at file| so catcode 12 string with no quotes.
% \begin{macrocode}
\long\def \IfFileExists@#1#2#3{%
- \openin\@inputcheck\quote at name{#1} %
+ \openin\@inputcheck"#1" %
\ifeof\@inputcheck
\ifx\input at path\@undefined
\def\reserved at a{#3}%
@@ -782,7 +786,7 @@
\fi
\else
\closein\@inputcheck
- \edef\@filef at und{\quote at name{#1} }%
+ \edef\@filef at und{"#1" }%
\def\reserved at a{#2}%
\fi
\reserved at a}
More information about the latex3-commits
mailing list