squish.gzip.lua: Open output file in binary mode

Sun, 10 Oct 2010 01:32:11 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 10 Oct 2010 01:32:11 +0100
changeset 73
9827b66cd3b2
parent 72
00d72b0f2e7c
child 74
4a76d75a1456

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;

mercurial