[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh284: fix for #284 (19968156)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Feb 21 00:13:45 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : hotfix/gh284
Link       : https://github.com/latex3/latex2e/commit/19968156d68deab8cef73a2c343af7a8d2338ead

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

commit 19968156d68deab8cef73a2c343af7a8d2338ead
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Feb 21 00:13:45 2020 +0100

    fix for #284


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

19968156d68deab8cef73a2c343af7a8d2338ead
 base/ltclass.dtx                          |  5 +++--
 base/testfiles/github-0256.luatex.tlg     |  2 +-
 base/testfiles/tlb-filename-01.luatex.tlg | 16 ++++++++++++++++
 base/testfiles/tlb-filename-01.lvt        | 12 ++++++++++++
 base/testfiles/tlb-filename-01.tlg        |  7 +++++++
 5 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 96daa3aa..57844392 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltclass.dtx}
-             [2020/02/05 v1.3i LaTeX Kernel (Class & Package Interface)]
+             [2020/02/20 v1.3j LaTeX Kernel (Class & Package Interface)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltclass.dtx}
@@ -1911,6 +1911,7 @@
 %    (hopefully) safe. If not opened that means we are going to write
 %    on the terminal.
 % \changes{v1.3g}{2020/01/27}{Fix typo in error message}
+% \changes{v1.3j}{2020/02/20}{Fix missing quotes around file name (gh/284)}
 %    \begin{macrocode}
       \ch at ck7\reserved at c\write\relax%
       \if at filesw%  % Foul ... trying to overwrite \jobname!
@@ -1920,7 +1921,7 @@
       \else%
         \@latex at warning@no at line%
            {Writing or overwriting file `\@currdir\@curr at file'}%
-        \immediate\openout\reserved at c#1\relax%
+        \immediate\openout\reserved at c\q at curr@file\relax%
       \fi%
     \fi%
   \fi%
diff --git a/base/testfiles/github-0256.luatex.tlg b/base/testfiles/github-0256.luatex.tlg
index 1384da8d..89681430 100644
--- a/base/testfiles/github-0256.luatex.tlg
+++ b/base/testfiles/github-0256.luatex.tlg
@@ -11,5 +11,5 @@ LaTeX Warning: Writing or overwriting file `./github-0256.xxx'.
 \openout127 = github-0256.xxx
 First line: hello = Hello?
 LaTeX Warning: Writing or overwriting file `././github-0256.xxx'.
-\openout127 = github-0256.xxx
+\openout127 = ./github-0256.xxx
 First line: %% LaTeX2e file `./github-0256.xxx' = some comment line?
diff --git a/base/testfiles/tlb-filename-01.luatex.tlg b/base/testfiles/tlb-filename-01.luatex.tlg
new file mode 100644
index 00000000..1753dbd1
--- /dev/null
+++ b/base/testfiles/tlb-filename-01.luatex.tlg
@@ -0,0 +1,16 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+1: no
+> 0.0pt.
+l. ...\showthe\wd0
+2: no
+> 0.0pt.
+l. ...\showthe\wd0
+LaTeX Warning: Writing or overwriting file `./file here.txt'.
+\openout127 = file here.txt
+3: yes
+> 0.0pt.
+l. ...\showthe\wd0
+4: no not supported
+> 0.0pt.
+l. ...\showthe\wd0
diff --git a/base/testfiles/tlb-filename-01.lvt b/base/testfiles/tlb-filename-01.lvt
index 033f4a7f..3663379b 100644
--- a/base/testfiles/tlb-filename-01.lvt
+++ b/base/testfiles/tlb-filename-01.lvt
@@ -10,4 +10,16 @@
 \sbox0{\IfFileExists{\myname}{\typeout{2: yes}}{\typeout{2: no}}}
 \showthe\wd0
 
+\begin{filecontents}[force]{file here.txt}
+  yes
+\end{filecontents}
+
+\renewcommand\myname{"file here.txt"}
+\sbox0{\IfFileExists{\myname}{\typeout{3: yes}}{\typeout{3: no}}}
+\showthe\wd0
+
+\renewcommand\myname{"{file here}.txt"}
+\sbox0{\IfFileExists{\myname}{\typeout{4: yes}}{\typeout{4: no not supported}}}
+\showthe\wd0
+
 \END
diff --git a/base/testfiles/tlb-filename-01.tlg b/base/testfiles/tlb-filename-01.tlg
index d1f7a903..0aea1de2 100644
--- a/base/testfiles/tlb-filename-01.tlg
+++ b/base/testfiles/tlb-filename-01.tlg
@@ -6,3 +6,10 @@ l. ...\showthe\wd0
 2: no
 > 0.0pt.
 l. ...\showthe\wd0
+LaTeX Warning: Writing or overwriting file `./file here.txt'.
+3: yes
+> 0.0pt.
+l. ...\showthe\wd0
+4: no not supported
+> 0.0pt.
+l. ...\showthe\wd0





More information about the latex3-commits mailing list.