lib/rouge/cli.rb in rouge-1.10.1 vs lib/rouge/cli.rb in rouge-1.11.0
- old
+ new
@@ -21,10 +21,10 @@
end
end
def read
@read ||= begin
- file.read
+ File.read(file, encoding: 'utf-8')
rescue => e
$stderr.puts "unable to open #{input}: #{e.message}"
exit 1
ensure
file.close