summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3kernel/l3luatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3luatex.dtx')
-rw-r--r--macros/latex/contrib/l3kernel/l3luatex.dtx7
1 files changed, 4 insertions, 3 deletions
diff --git a/macros/latex/contrib/l3kernel/l3luatex.dtx b/macros/latex/contrib/l3kernel/l3luatex.dtx
index 76e8fbf106..14e94a1a24 100644
--- a/macros/latex/contrib/l3kernel/l3luatex.dtx
+++ b/macros/latex/contrib/l3kernel/l3luatex.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2020-01-22}
+% \date{Released 2020-01-31}
%
% \maketitle
%
@@ -354,9 +354,10 @@ local write = tex.write
local write_nl = texio.write_nl
% \end{macrocode}
%
-% Newer Con\TeX{}t releases replace the |unicode| library by |utf|.
+% Newer Con\TeX{}t releases replace the |unicode| library by |utf| and
+% since Lua 5.3 we can even use the Lua standard |utf8| library.
% \begin{macrocode}
-local utf8_char = (utf and utf.char) or unicode.utf8.char
+local utf8_char = (utf8 and utf8.char) or (utf and utf.char) or unicode.utf8.char
% \end{macrocode}
%
% Deal with Con\TeX{}t: doesn't use |kpse| library.