summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx13
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx b/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
index 376a96c4249..e99e293795a 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
@@ -41,7 +41,7 @@
% }^^A
% }
%
-% \date{Released 2018-12-11}
+% \date{Released 2018-12-12}
%
% \maketitle
%
@@ -333,7 +333,9 @@ local byte = string.byte
local floor = math.floor
local format = string.format
local gsub = string.gsub
-local kpse_find = kpse.find_file
+if not resolvers then
+ local kpse_find = kpse.find_file
+end
local lfs_attr = lfs.attributes
local md5_sum = md5.sum
local open = io.open
@@ -345,6 +347,13 @@ local write = tex.write
local utf8_char = unicode.utf8.char
% \end{macrocode}
%
+% Deal with Con\TeX{}t: doesn't use |kpse| library.
+% \begin{macrocode}
+if resolvers then
+ kpse_find = resolvers.findfile
+end
+% \end{macrocode}
+%
% \begin{macro}[int]{escapehex}
% An internal auxiliary to convert a string to the matching hex escape.
% This works on a byte basis: extension to handled UTF-8 input is