summaryrefslogtreecommitdiff
path: root/luaotfload-fonts.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload-fonts.lua')
-rw-r--r--luaotfload-fonts.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua
index 9a59681..61d91e3 100644
--- a/luaotfload-fonts.lua
+++ b/luaotfload-fonts.lua
@@ -355,7 +355,7 @@ local function reload(force)
end
end
savepath = savepath .. '/' .. luaotfload.fonts.basename
- local fh = io.open(savepath, 'wb')
+ local fh = io.open(savepath, 'a+')
if not fh then
texio.write_nl(string.format("Error: cannot write file '%s', exiting.\n", savepath))
os.exit(1)