[latex3-commits] [git/LaTeX3-latex3-l3build] main: Suppress UNC paths in Windows filenames (see #125) (5b7e866)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Nov 25 09:08:13 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/5b7e8660b34e19282706891c87d37c1e0b94a74e

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

commit 5b7e8660b34e19282706891c87d37c1e0b94a74e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Nov 25 08:08:13 2021 +0000

    Suppress UNC paths in Windows filenames (see #125)


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

5b7e8660b34e19282706891c87d37c1e0b94a74e
 CHANGELOG.md               | 1 +
 l3build-file-functions.lua | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 02531ab..d53abc5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ this project uses date-based 'snapshot' version identifiers.
 - Add sanity check for `TEXMFHOME` value
 
 ### Fixed
+- Installation of files when using MiKTeX (see #125)
 - Incorrect line in `manifest` target (see #195)
 - Placement of PDF files in subdirectory locations (issue #209)
 
diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua
index 1fc9e1d..4aa591d 100644
--- a/l3build-file-functions.lua
+++ b/l3build-file-functions.lua
@@ -177,7 +177,7 @@ function abspath(path)
   if ok then
     local result = currentdir()
     chdir(oldpwd)
-    return escapepath(gsub(result, "\\", "/"))
+    return escapepath(gsub(gsub(result,"^\\\\%?\\",""), "\\", "/"))
   end
   error(msg)
 end





More information about the latex3-commits mailing list.