Skip to content

Commit

Permalink
UTF-8 decode the output of hightlight.
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Apr 14, 2019
1 parent af3377f commit ad17123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trizen
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ sub output_file_content ($file) {

my $cmd = join(' ', $lconfig{syntax_highlighting_cmd}, "--syntax=$syntax", '--force', quotemeta($file));

say sanitize_output(scalar `$cmd`) . "\n";
say sanitize_output(decode_utf8(scalar `$cmd`)) . "\n";

return 1;
}
Expand Down

0 comments on commit ad17123

Please sign in to comment.