summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/file-lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/file-lib.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/file-lib.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/context/base/file-lib.lua b/Master/texmf-dist/tex/context/base/file-lib.lua
index 92dacbf5cc6..3311321c521 100644
--- a/Master/texmf-dist/tex/context/base/file-lib.lua
+++ b/Master/texmf-dist/tex/context/base/file-lib.lua
@@ -18,11 +18,11 @@ local loaded = { }
local defaultpatterns = { "%s" }
local function defaultaction(name,foundname)
- report_files("asked name: '%s', found name: '%s'",name,foundname)
+ report_files("asked name %a, found name %a",name,foundname)
end
local function defaultfailure(name)
- report_files("asked name: '%s', not found",name)
+ report_files("asked name %a, not found",name)
end
function commands.uselibrary(specification) -- todo; reporter
@@ -33,6 +33,7 @@ function commands.uselibrary(specification) -- todo; reporter
local failure = specification.failure or defaultfailure
local onlyonce = specification.onlyonce
local files = utilities.parsers.settings_to_array(name)
+ local truename = environment.truefilename
local done = false
for i=1,#files do
local filename = files[i]
@@ -42,9 +43,9 @@ function commands.uselibrary(specification) -- todo; reporter
end
for i=1,#patterns do
local somename = format(patterns[i],filename)
-if environment.truefilename then
- somename = environment.truefilename(somename)
-end
+ if truename then
+ somename = truename(somename)
+ end
local foundname = resolvers.getreadfilename("any",".",somename) or ""
if foundname ~= "" then
action(name,foundname)