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 | f5b9676f8925ee6be3c2bea4beed15e96e069ef6 (patch) | |
tree | be0181d257d4da5cfc5749348aa5b725403733d8 /external/autopygmentize | |
parent | c80f19dba196d93a5e3005cf1536ecf523a33eee (diff) | |
download | pygments-git-f5b9676f8925ee6be3c2bea4beed15e96e069ef6.tar.gz |
autopygmentize: fix binary encoding workaround
Diffstat (limited to 'external/autopygmentize')
-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 |