summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-06-06 07:13:26 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-06-06 07:13:26 +0000
commit8da60314e0208c90ca3745826451698e24140082 (patch)
tree61ee0c11066c839e5c1a4adb3814c05e66646e69
parentccd2c7338d8bcbacffe531d9c43493f7f8035517 (diff)
A fix for filepaths with spaces in context mkiv (possibly partial)
git-svn-id: svn://tug.org/texlive/trunk@22813 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/tex/context/base/luat-cod.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/luat-cod.lua b/Master/texmf-dist/tex/context/base/luat-cod.lua
index a9cd4551b3b..ab21fef09c6 100644
--- a/Master/texmf-dist/tex/context/base/luat-cod.lua
+++ b/Master/texmf-dist/tex/context/base/luat-cod.lua
@@ -78,7 +78,8 @@ environment = environment or { }
local environment = environment
local sourcefile = arg and arg[1] or ""
-local sourcepath = find(sourcefile,"/") and gsub(sourcefile,"/[^/]+$","") or ""
+local sourcepath = gsub (sourcefile,"^\"(.*)\"$", "%1")
+sourcepath = find(sourcepath,"/") and gsub(sourcepath,"/[^/]+$","") or ""
local targetpath = "."
-- delayed (via metatable):