From cf952ba5e16b7ac85c361db1333d86484ce4a47a Mon Sep 17 00:00:00 2001 From: Ignacio Burgueño Date: Wed, 29 Jun 2011 20:38:04 -0300 Subject: zip handle should be opened with 'wb' flags --- src/luarocks/tools/zip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/tools/zip.lua b/src/luarocks/tools/zip.lua index 3afec53b..36adc7e2 100644 --- a/src/luarocks/tools/zip.lua +++ b/src/luarocks/tools/zip.lua @@ -188,7 +188,7 @@ function new_zipwriter(name) local zw = {} - zw.ziphandle = io.open(name, "w") + zw.ziphandle = io.open(name, "wb") if not zw.ziphandle then return nil end -- cgit v1.2.3-55-g6feb