[latex3-commits] [l3svn] 02/02: l3build: LuaTeX v1.04+ on Windows needs \n newlines

noreply at latex-project.org noreply at latex-project.org
Thu Mar 30 22:57:14 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 69cdf3f5a60cd53898ac3ed337e59a168d88f771
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Mar 30 21:17:28 2017 +0100

    l3build: LuaTeX v1.04+ on Windows needs \n newlines
---
 l3build/l3build.lua |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 7d7fe1b..2bec687 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -409,7 +409,12 @@ if os.type == "windows" then
   os_diffext  = os.getenv("diffext") or ".fc"
   os_diffexe  = os.getenv("diffexe") or "fc /n"
   os_grepexe  = "findstr /r"
-  os_newline  = "\r\n"
+  os_newline  = "\n"
+  if tonumber(status.luatex_version) < 100 or
+     (tonumber(status.luatex_version) == 100
+       and tonumber(status.luatex_revision) < 4) then
+    os_newline = "\r\n"
+  end
   os_null     = "nul"
   os_pathsep  = ";"
   os_setenv   = "set"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list