[latex3-commits] [git/LaTeX3-latex3-latex3] master: Remove code for stripping quotes in file names (a6605a53a)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Oct 24 18:08:30 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/a6605a53a87c1b783468125523275b3e630fe24f

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

commit a6605a53a87c1b783468125523275b3e630fe24f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Oct 24 17:08:30 2019 +0100

    Remove code for stripping quotes in file names
    
    This got missed earlier!


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

a6605a53a87c1b783468125523275b3e630fe24f
 l3kernel/l3file.dtx | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

diff --git a/l3kernel/l3file.dtx b/l3kernel/l3file.dtx
index 83e408f4a..49b0f9189 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -2572,31 +2572,16 @@
 %
 % \begin{macro}{\@@_size:n}
 %   A copy of the primitive where it's available, or the \LuaTeX{}
-%   equivalent if relevant. \XeTeX{} treats any quote chars as part of
-%   the name, so they must be removed. \LuaTeX{} also requires no quote chars
-%   here.
+%   equivalent if relevant.
 %    \begin{macrocode}
-\sys_if_engine_xetex:TF
-  {
-    \cs_new:Npn \@@_size:n #1
-      {
-        \exp_args:Ne \tex_filesize:D
-          { \@@_size:w #1 " #1 " \q_stop }
-      }
-    \cs_new:Npn \@@_size:w #1 " #2 " #3 \q_stop {#2}
-  }
-  { \cs_new_eq:NN \@@_size:n \tex_filesize:D }
+\cs_new_eq:NN \@@_size:n \tex_filesize:D
 \sys_if_engine_luatex:T
   {
     \cs_gset:Npn \@@_size:n #1
       {
         \lua_now:e
-          {
-            l3kernel.filesize
-              ( " \lua_escape:e { \@@_size:w #1 " #1 " \q_stop } " )
-          }
+          { l3kernel.filesize ( " \lua_escape:e {#1} " ) }
       }
-    \cs_new:Npn \@@_size:w #1 " #2 " #3 \q_stop {#2}
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list