Guess the correct encoding for each diff line.
commit1ef6f5ef638e17ddd98094027413e07aa4590800
authorDavid Martínez Martí <deavidsedice@gmail.com>
Fri, 14 Nov 2008 16:13:25 +0000 (14 17:13 +0100)
committerDavid Aguilar <davvid@gmail.com>
Sat, 15 Nov 2008 13:54:17 +0000 (15 05:54 -0800)
tree22f6e1142b88279e03c844006838feeb8209bceb
parentdf58c910bef4e706b790d60c0d854d7664c5dd8f
Guess the correct encoding for each diff line.

Git can handle any type of file, whatever encoding it uses
(or a broken one). Git-cola must not fail (or complain) when
trying to show that data.

Git-cola only handles utf8 in diffs, which is not very useful
when your project has different encodings.

This patch adds a very simple encoding guess for each line.
Do not try to do this at the whole file, because it is useful
when you are viewing a diff of a encode change.

Signed-off-by: David Martínez Martí <deavidsedice@gmail.com>
cola/models.py