summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmkluatexfontdb.lua1
-rw-r--r--otfl-basics-gen.lua7
2 files changed, 3 insertions, 5 deletions
diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua
index 80c0951..e7796db 100755
--- a/mkluatexfontdb.lua
+++ b/mkluatexfontdb.lua
@@ -55,7 +55,6 @@ Valid options:
-vvv print all steps of directory searching
-V --version print version and exit
-h --help print this message
-
--find="font name" query the database for a font name
-F --fuzzy look for approximate matches if --find fails
diff --git a/otfl-basics-gen.lua b/otfl-basics-gen.lua
index 288cfa2..727086e 100644
--- a/otfl-basics-gen.lua
+++ b/otfl-basics-gen.lua
@@ -280,10 +280,9 @@ function caches.compile(data,luaname,lucname)
if d and d ~= "" then
local f = io.open(lucname,'w')
if f then
- local s = loadstring(d)
- if s then
- f:write(string.dump(s,true))
- end
+ local s
+ if _G["loadstring"] then s=loadstring(d) else s=load(d) end
+ f:write(string.dump(s))
f:close()
end
end