Sun, 10 Oct 2010 01:32:11 +0100
squish.gzip.lua: Open output file in binary mode
gzip/squish.gzip.lua | file | annotate | diff | comparison | revisions |
--- a/gzip/squish.gzip.lua Sun Oct 10 01:31:39 2010 +0100 +++ b/gzip/squish.gzip.lua Sun Oct 10 01:32:11 2010 +0100 @@ -5,7 +5,7 @@ return; end - local outfile, err = io.open(outfile_fn..".gzipped", "w+"); + local outfile, err = io.open(outfile_fn..".gzipped", "wb+"); if not outfile then print_err("Can't open output file for writing: "..tostring(err)); return;