From 8da60314e0208c90ca3745826451698e24140082 Mon Sep 17 00:00:00 2001 From: Taco Hoekwater Date: Mon, 6 Jun 2011 07:13:26 +0000 Subject: 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 --- Master/texmf-dist/tex/context/base/luat-cod.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3