[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Don't fail fatally if precompiled font database isn't compatible (582445f)

Marcel Fabian Krüger tex at 2krueger.de
Wed Apr 27 20:45:15 CEST 2022


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/582445fad92b5eed1cd13bd16fdcf5375994e37c

>---------------------------------------------------------------

commit 582445fad92b5eed1cd13bd16fdcf5375994e37c
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Wed Apr 27 20:22:41 2022 +0200

    Don't fail fatally if precompiled font database isn't compatible


>---------------------------------------------------------------

582445fad92b5eed1cd13bd16fdcf5375994e37c
 src/luaotfload-database.lua | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 4daacda..dd42929 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -516,8 +516,11 @@ end
 local function load_lua_file (path_lua, path_luc)
     local foundname, chunk = load_maybe_gzip (path_luc, true)
     if foundname then
-        chunk = assert (load (chunk, 'b'))
+        chunk = load (chunk, 'b')
     else
+        chunk = nil
+    end
+    if not chunk then
         foundname, chunk = load_maybe_gzip (path_lua, false)
         if foundname then
             chunk = assert (load (chunk, 't'))





More information about the latex3-commits mailing list.