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

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


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

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

commit db1cb1243a460961d612c256dae4d86a217094ed
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


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

db1cb1243a460961d612c256dae4d86a217094ed
 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.