A bug in gitview

1 message Options
Embed this post
Permalink
Rafał Mużyło-2

A bug in gitview

Reply Threaded More More options
Print post
Permalink
When I modified a html file, that was not utf-8
encoded and commited the changes, if I select
that particular commit in gitview, the content
isn't shown, an error is printed instead:

Traceback (most recent call last):
  File "/usr/bin/gitview", line 1002, in _treeview_cursor_cb
    self.message_buffer.set_text(unicode(message, self.encoding).encode('utf-8'))
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa4 in position 4723:
unexpected code byte:

That's of course correct, it's not utf8.
'git diff' simply shows that as hex values,
there's probably a way to do the same for
gitview.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html