[latex3-commits] [git/LaTeX3-latex3-latex2e] gh356: Update changes.txt and ltfiles.dtx to prevent lookong vor csnameendcsname.tex (7c4d4b95)

Johannes Braams texniek at braams.xs4all.nl
Sat Jul 11 09:01:42 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh356
Link       : https://github.com/latex3/latex2e/commit/7c4d4b95c51c526ee6e88fc80e9dabdd4acb41b9

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

commit 7c4d4b95c51c526ee6e88fc80e9dabdd4acb41b9
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date:   Sat Jul 11 09:01:42 2020 +0200

    Update changes.txt and ltfiles.dtx to prevent lookong vor csnameendcsname.tex


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

7c4d4b95c51c526ee6e88fc80e9dabdd4acb41b9
 base/changes.txt |  5 +++++
 base/ltfiles.dtx | 39 ++++++++++++++++++++++++++++++---------
 2 files changed, 35 insertions(+), 9 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index a52a672d..a27bc896 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2020-07-10  Johannes Braams  <Johannes.Braams at latex-project.org>
+
+	* ltfiles.dtx: Prevent \input{} from trying to load
+	csnameendcsname.tex (gh/356)
+
 2020-07-04  Marcel Krüger  <Marcel.Krueger at latex-project.org>
 
 	* ltoutenc.dtx:
diff --git a/base/ltfiles.dtx b/base/ltfiles.dtx
index 60b6a23e..fb486508 100644
--- a/base/ltfiles.dtx
+++ b/base/ltfiles.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfiles.dtx}
-             [2020-06-05 v1.2h LaTeX Kernel (File Handling)]
+             [2020-07-10 v1.2i LaTeX Kernel (File Handling)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfiles.dtx}
@@ -887,21 +887,42 @@
 %  \changes{v1.2c}{2019/10/11}{Remove one brace group}
 %  \changes{v1.2d}{2019/10/26}{remove quotes}
 %  \changes{v1.2e}{2019/11/09}{expand and \cs{string} before removing quotes}
+% \changes{v1.2i}{2020-07-10}{When the argument is empty return an
+%    empty macro instead of \texttt{csnameendcsname} (gh/356)} 
 %    \begin{macrocode}
 %</2ekernel>
 %<*2ekernel|latexrelease>
-%<latexrelease>\IncludeInRelease{2019/10/01}%
-%<latexrelease>                 {\set at curr@file}{Quote file names}%
+%<latexrelease>\IncludeInRelease{2020/10/01}%
+%<latexrelease>                 {\set at curr@file}{Handle empty argument}
 \def\set at curr@file#1{%
   \begingroup
-    \escapechar\m at ne
-    \xdef\@curr at file{%
-      \expandafter\expandafter\expandafter\unquote at name
-      \expandafter\expandafter\expandafter{%
-      \expandafter\string
-        \csname\@firstofone#1\@empty\endcsname}}%
+    \def\reserved at a{#1}%
+    \ifx\reserved at a\@empty
+      \xdef\@curr at file{}%
+    \else
+      \escapechar\m at ne
+      \xdef\@curr at file{%
+        \expandafter\expandafter\expandafter\unquote at name
+        \expandafter\expandafter\expandafter{%
+        \expandafter\string
+          \csname\@firstofone#1\@empty\endcsname}}%
+    \fi
   \endgroup
 }
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{2019/10/01}%
+%<latexrelease>                 {\set at curr@file}{Quote file names}%
+%<latexrelease>\def\set at curr@file#1{%
+%<latexrelease>  \begingroup
+%<latexrelease>    \escapechar\m at ne
+%<latexrelease>    \xdef\@curr at file{%
+%<latexrelease>      \expandafter\expandafter\expandafter\unquote at name
+%<latexrelease>      \expandafter\expandafter\expandafter{%
+%<latexrelease>      \expandafter\string
+%<latexrelease>        \csname\@firstofone#1\@empty\endcsname}}%
+%<latexrelease>  \endgroup
+%<latexrelease>}
 %    \end{macrocode}
 %  \end{macro}
 %  \end{macro}





More information about the latex3-commits mailing list.