Skip to content

Commit

Permalink
Merge pull request #417 from japj/cli-handle-utf8
Browse files Browse the repository at this point in the history
rougify should treat file input as utf8
  • Loading branch information
jneen committed Jun 2, 2016
2 parents 0c0396f + 92def96 commit 64d0e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def file

def read
@read ||= begin
file.read
File.read(file, encoding: 'utf-8')
rescue => e
$stderr.puts "unable to open #{input}: #{e.message}"
exit 1
Expand Down

0 comments on commit 64d0e78

Please sign in to comment.