Fixed issue with binary files in windows, http://www.lua.org/pil/21.2.2.html

This commit is contained in:
martin.holst@gmail.com 2013-11-07 11:32:13 +00:00
parent 77cd612f15
commit 4c367827b5

View file

@ -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