Read assets in binary mode for the windows users.

This commit is contained in:
Chris Eppstein 2010-08-26 22:22:13 -07:00
parent 9a81fa560e
commit b6b0723788

View File

@ -46,7 +46,7 @@ private
def data(real_path) def data(real_path)
if File.readable?(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 else
raise Compass::Error, "File not found or cannot be read: #{real_path}" raise Compass::Error, "File not found or cannot be read: #{real_path}"
end end