From: martin.holst@gmail.com Date: Thu, 7 Nov 2013 11:32:13 +0000 (+0000) Subject: Fixed issue with binary files in windows, http://www.lua.org/pil/21.2.2.html X-Git-Tag: v1.0.0~23 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/4c367827b5848c064ba5830d9a87c77c9239d0be Fixed issue with binary files in windows, http://www.lua.org/pil/21.2.2.html --- 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