Permalink
Browse files

use binary mode

  • Loading branch information...
1 parent ebd3d38 commit 1a6ab53b11225b376433f84025c419f0ec1ec5a7 @swdyh committed Apr 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/quilt.rb
View
@@ -35,7 +35,7 @@ def polygon points, color
end
def write path
- open(path, 'w') {|f| f.puts @image.to_blob }
+ open(path, 'wb') {|f| f.write @image.to_blob }
end
def to_blob

0 comments on commit 1a6ab53

Please sign in to comment.