Permalink
Browse files

Test binary if Unknown

  • Loading branch information...
1 parent f1de60a commit 4cd8f94f2522c5b4130c3e5928fb0b90b472b404 @titoBouzout committed Oct 21, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 EncodingHelper.py
View
@@ -112,6 +112,9 @@ def run(self):
encoding = 'Unknown'
else:
encoding = fallback
+ if encoding == 'Unknown' and maybe_binary(self.file_name):
+ encoding = 'BINARY'
+ confidence = 0.7
del detector
sublime.set_timeout(functools.partial(self.callback, encoding), 0)

0 comments on commit 4cd8f94

Please sign in to comment.