lib/inch/language/elixir/provider/reader/parser.rb in inch-0.5.0 vs lib/inch/language/elixir/provider/reader/parser.rb in inch-0.5.1
- old
+ new
@@ -55,10 +55,10 @@
def parse_objects(_paths, _excluded, read_dump_file = nil)
if read_dump_file.nil?
fail 'Elixir analysis only works with --read-from-dump.'
else
- output = File.read(read_dump_file)
+ output = File.read(read_dump_file, :encoding => 'utf-8')
end
@parsed_objects = JSON[output]['objects']
end
end
end