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:33:48 +00:00
parent 4c367827b5
commit 6cacefa48d

View file

@ -88,7 +88,7 @@ local function main(args)
end
-- Validate the parameters
local infile = io.open(input, "r")
local infile = io.open(input, "rb")
if infile == nil then
return oops("Could not read file ", input)
end