[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] NetAddr fails to archive properly: patch included



Hi -

NetAddr doesn't quote its IP address when included in a .writeArchive
call. It comes out as

NetAddr.new(127.0.0.1, 57110)

which of course doesn't compile. The attached (trivial) patch fixes it.

Could someone please commit this?

Best,
Dan

--
http://www.mcld.co.uk
Index: NetAddr.sc
===================================================================
--- NetAddr.sc	(revision 5684)
+++ NetAddr.sc	(working copy)
@@ -97,7 +97,7 @@
 	}
 	storeOn { | stream |
 		super.storeOn(stream);
-		stream << $( << this.ip << ", " << port << $)
+		stream << $( << "\"" << this.ip << "\", " << port << $)
 	}
 
 	// PRIVATE