gzip/squish.gzip.lua

changeset 75
6028ae579fde
parent 74
4a76d75a1456
--- a/gzip/squish.gzip.lua	Sun Oct 10 01:32:54 2010 +0100
+++ b/gzip/squish.gzip.lua	Sun Oct 10 01:34:27 2010 +0100
@@ -42,7 +42,7 @@
 	outfile:write[[return assert(loadstring((function (i)local o={} ungz{input=i,output=function(b)table.insert(o,string.char(b))end}return table.concat(o)end) ]];
 
 	--outfile:write [[return assert(loadstring(_gunzip]]
-	outfile:write(string.format("%q", code));
+	outfile:write((string.format("%q", code):gsub("\026", "\\026")));
 	--outfile:write("[", string.rep("=", maxequals+1), "[", code, "]", string.rep("=", maxequals+1), "]");
 	outfile:write(", '@", outfile_fn,"'))()");
 	outfile:close();

mercurial