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

Sun, 10 Oct 2010 01:31:39 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 10 Oct 2010 01:31:39 +0100
changeset 72
00d72b0f2e7c
parent 71
e27ab4492cdd
child 73
9827b66cd3b2

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

uglify/squish.uglify.lua file | annotate | diff | comparison | revisions
--- a/uglify/squish.uglify.lua	Fri Aug 06 20:17:46 2010 +0100
+++ b/uglify/squish.uglify.lua	Sun Oct 10 01:31:39 2010 +0100
@@ -13,7 +13,7 @@
 		return;
 	end
 	
-	local outfile, err = io.open(outfile_fn..".uglified", "w+");
+	local outfile, err = io.open(outfile_fn..".uglified", "wb+");
 	if not outfile then
 		print_err("Can't open output file for writing: "..tostring(err));
 		return;

mercurial