diff options
author | rrt <rrt@sc3d.org> | 2016-05-04 15:21:49 +0100 |
---|---|---|
committer | rrt <rrt@sc3d.org> | 2016-05-04 15:21:49 +0100 |
commit | b1320b98a2a4f62b2bb4f5767d935cd48968ca5a (patch) | |
tree | a8fdf4e20ed2d0be83cc0c44285dc177a04567ef /external | |
parent | 3c835b53d7eeede449d38549461c56bee135fbfd (diff) | |
download | pygments-b1320b98a2a4f62b2bb4f5767d935cd48968ca5a.tar.gz |
autopygmentize: fix binary encoding workaround
Diffstat (limited to 'external')
-rwxr-xr-x | external/autopygmentize | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external/autopygmentize b/external/autopygmentize index d2f969a1..7873c22a 100755 --- a/external/autopygmentize +++ b/external/autopygmentize @@ -66,8 +66,8 @@ if [[ "$lexer" == text ]]; then fi encoding=$(file --mime-encoding --uncompress $file_common_opts "$file") -if [[ $encoding == "us-asciibinarybinary" ]]; then - encoding="us-ascii" +if [[ $encoding == "binary" ]]; then + encoding="latin1" fi if [[ -n "$lexer" ]]; then |