[latex3-commits] [git/l3build] master: Apply unix_to_win() in all cases before doing diff/fc (fixes #51) (ca7194c)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Jan 27 09:21:05 CET 2018


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

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

commit ca7194c13060f45794c7d2df545a4bd9effaf004
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Jan 27 08:20:22 2018 +0000

    Apply unix_to_win() in all cases before doing diff/fc (fixes #51)


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

ca7194c13060f45794c7d2df545a4bd9effaf004
 l3build-check.lua |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index ee4c665..40c2856 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -565,7 +565,6 @@ function compare_tlg(name, engine)
   if not tlgfile then
     return
   end
-  tlgfile = unix_to_win(tlgfile)
   -- Do additional log formatting if the engine is LuaTeX, there is no
   -- LuaTeX-specific .tlg file and the default engine is not LuaTeX
   if engine == "luatex"
@@ -574,14 +573,16 @@ function compare_tlg(name, engine)
     and stdengine ~= "luajittex"
     then
     local luatlgfile = testdir .. "/" .. name .. ".luatex" ..  tlgext
-    luatlgfile = unix_to_win(luatlgfile)
     formatlualog(tlgfile, luatlgfile)
     formatlualog(logfile, logfile)
     -- This allows code sharing below: we only need the .tlg name in one place
     tlgfile = luatlgfile
   end
   errorlevel = execute(
-    os_diffexe .. " " .. tlgfile .. " " .. logfile .. " > " .. difffile
+    os_diffexe .. " "
+      .. unix_to_win(tlgfile) .. " "
+      .. unix_to_win(logfile) .. " > "
+      .. unix_to_win(difffile)
   )
   if errorlevel == 0 then
     os.remove(difffile)





More information about the latex3-commits mailing list