[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Abort if utf8 module is unavailable (latex3/luaotfload#89) (e2c7c2d)
Eisuke Kawashima
e-kwsm at github.github.io
Fri Nov 1 12:49:57 CET 2019
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/e2c7c2d26a6aa45a9f1b17dc4bfc19ecf0caf905
>---------------------------------------------------------------
commit e2c7c2d26a6aa45a9f1b17dc4bfc19ecf0caf905
Author: Eisuke Kawashima <e-kwsm at users.noreply.github.com>
Date: Mon Oct 28 07:58:10 2019 +0900
Abort if utf8 module is unavailable (latex3/luaotfload#89)
>---------------------------------------------------------------
e2c7c2d26a6aa45a9f1b17dc4bfc19ecf0caf905
src/luaotfload-main.lua | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index cd4e285..a359455 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -65,6 +65,16 @@ then
error "version check failed"
end
+if not utf8 then
+ texio.write_nl("term and log", string.format("\z
+ \tluaotfload: module utf8 is unavailable\n\z
+ \tutf8 is available in Lua 5.3+; engine\'s _VERSION is '%s'\n\z
+ \tThis probably means that the engine is not supported\n\z
+ \n",
+ _VERSION))
+ error "module utf8 is unavailable"
+end
+
if status.safer_option ~= 0 then
texio.write_nl("term and log","luaotfload can't run with option --safer. Aborting")
error("safer_option used")
More information about the latex3-commits
mailing list