diff options
author | Ignacio Burgueño <iburgueno@gmail.com> | 2011-06-29 20:38:04 -0300 |
---|---|---|
committer | Ignacio Burgueño <iburgueno@gmail.com> | 2011-06-29 20:38:04 -0300 |
commit | cf952ba5e16b7ac85c361db1333d86484ce4a47a (patch) | |
tree | fa65d86f0d9c3e21aace6ca4dbc7807af79eee89 | |
parent | 7849616e0d9c68b2cd15dfc8264a538f81dc28f4 (diff) | |
download | luarocks-cf952ba5e16b7ac85c361db1333d86484ce4a47a.tar.gz luarocks-cf952ba5e16b7ac85c361db1333d86484ce4a47a.tar.bz2 luarocks-cf952ba5e16b7ac85c361db1333d86484ce4a47a.zip |
zip handle should be opened with 'wb' flags
-rw-r--r-- | src/luarocks/tools/zip.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
188 | 188 | ||
189 | local zw = {} | 189 | local zw = {} |
190 | 190 | ||
191 | zw.ziphandle = io.open(name, "w") | 191 | zw.ziphandle = io.open(name, "wb") |
192 | if not zw.ziphandle then | 192 | if not zw.ziphandle then |
193 | return nil | 193 | return nil |
194 | end | 194 | end |