Treat as binary if encoding is nil

This commit is contained in:
Joshua Peek
2011-09-08 13:30:21 -05:00
parent 7ed26bfcf3
commit 1c24de490b

View File

@@ -94,7 +94,7 @@ module Linguist
if mime_type = Mime.lookup_mime_type_for(pathname.extname)
mime_type.binary?
else
detect_encoding.nil? || detect_encoding[:type] == :binary
encoding.nil? || detect_encoding[:type] == :binary
end
end