From 4c367827b5848c064ba5830d9a87c77c9239d0be Mon Sep 17 00:00:00 2001 From: "martin.holst@gmail.com" Date: Thu, 7 Nov 2013 11:32:13 +0000 Subject: [PATCH] Fixed issue with binary files in windows, http://www.lua.org/pil/21.2.2.html --- client/lualibs/html_dumplib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lualibs/html_dumplib.lua b/client/lualibs/html_dumplib.lua index 66a3e037..e730920c 100644 --- a/client/lualibs/html_dumplib.lua +++ b/client/lualibs/html_dumplib.lua @@ -107,7 +107,7 @@ local function convert_bin_to_html(input, output, blockLen) blockLen = blockLen or 16 output = output or input .. 'html' - local infile = io.open(input, "r") + local infile = io.open(input, "rb") if infile == nil then return oops(string.format("Could not read file %s",tostring(input))) end -- 2.39.5