kemayo/sublime-text-2-git — Issue #78: Some weirdly encoded commit messages can make things fail
Author: rchl
Created: 2012-01-26 22:15:41+00:00
State: open

When I use git log option, I don't get any output but instead this error in the console:

Exception in thread Thread-45:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "./git.py", line 102, in run
File "./git.py", line 63, in _make_text_safeish
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1252.py", line 15, in decode
return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 1217736: character maps to

I don't know exactly which commit causes the failure but it's probably encoded in something that is not utf-8 (windows-1251 or iso-8859-1).