diff options
Diffstat (limited to 'mkluatexfontdb.lua')
-rwxr-xr-x | mkluatexfontdb.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua index a72478b..a2d208d 100755 --- a/mkluatexfontdb.lua +++ b/mkluatexfontdb.lua @@ -135,7 +135,7 @@ local function generate(force) os.exit(1) end end - savepath = savepath .. '/' .. names.path.basename + savepath = file.join(savepath, names.path.basename) local fh = io.open(savepath, 'a+') if not fh then texio.write_nl(string.format("Error: cannot write file '%s', exiting.\n", savepath)) @@ -150,7 +150,7 @@ local function generate(force) end fontnames = names.update(fontnames, force) log("%s fonts in the database", #fontnames.mappings) - io.savedata(savepath, table.serialize(fontnames, true)) + table.tofile(savepath, fontnames, true) log("saved font names database in %s\n", savepath) end |