summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorrrt <rrt@sc3d.org>2016-05-04 15:21:49 +0100
committerrrt <rrt@sc3d.org>2016-05-04 15:21:49 +0100
commitb1320b98a2a4f62b2bb4f5767d935cd48968ca5a (patch)
treea8fdf4e20ed2d0be83cc0c44285dc177a04567ef /external
parent3c835b53d7eeede449d38549461c56bee135fbfd (diff)
downloadpygments-b1320b98a2a4f62b2bb4f5767d935cd48968ca5a.tar.gz
autopygmentize: fix binary encoding workaround
Diffstat (limited to 'external')
-rwxr-xr-xexternal/autopygmentize4
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