Modified: MacRuby/trunk/lib/rubygems/package/tar_writer.rb (5223 => 5224)
--- MacRuby/trunk/lib/rubygems/package/tar_writer.rb 2011-02-09 02:29:50 UTC (rev 5223)
+++ MacRuby/trunk/lib/rubygems/package/tar_writer.rb 2011-02-09 03:21:27 UTC (rev 5224)
@@ -40,6 +40,9 @@
# number of bytes will be more than #limit
def write(data)
+ # XXX MACRUBY mainly because our File.open won't honor 'b'.
+ data = data.force_encoding('BINARY')
+
if data.size + @written > @limit
raise FileOverflow, "You tried to feed more data than fits in the file."
end