From b6b072378872d458136b0c11a681afdccfab8972 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 26 Aug 2010 22:22:13 -0700 Subject: [PATCH] Read assets in binary mode for the windows users. --- lib/compass/sass_extensions/functions/inline_image.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/sass_extensions/functions/inline_image.rb b/lib/compass/sass_extensions/functions/inline_image.rb index 77035ebd..59dd60a7 100644 --- a/lib/compass/sass_extensions/functions/inline_image.rb +++ b/lib/compass/sass_extensions/functions/inline_image.rb @@ -46,7 +46,7 @@ private def data(real_path) if File.readable?(real_path) - [File.read(real_path)].pack('m').gsub("\n","") + [File.open(real_path, "rb") {|io| io.read}].pack('m').gsub("\n","") else raise Compass::Error, "File not found or cannot be read: #{real_path}" end