Fixed issue with binary files in windows, http://www.lua.org/pil/21.2.2.html
This commit is contained in:
@@ -88,7 +88,7 @@ local function main(args)
|
|||||||
end
|
end
|
||||||
-- Validate the parameters
|
-- Validate the parameters
|
||||||
|
|
||||||
local infile = io.open(input, "r")
|
local infile = io.open(input, "rb")
|
||||||
if infile == nil then
|
if infile == nil then
|
||||||
return oops("Could not read file ", input)
|
return oops("Could not read file ", input)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user