# File lib/fakefs/file.rb, line 608 def read(length = nil, buf = '') read_buf = super(length, buf) # change to binary only for ruby 1.9.3 if read_buf.respond_to?(:force_encoding) && binary_mode? read_buf = read_buf.force_encoding('ASCII-8BIT') end read_buf end