git-gui: prevent double UTF-8 conversion
commit331450f18a7fd298ddd6b85cc5e8ed9dba09f9da
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 5 Dec 2017 14:23:26 +0000 (5 15:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Dec 2017 17:14:45 +0000 (5 09:14 -0800)
tree86b1af12827cd89d9ba3246ed0f95b5aa63f1256
parent5ab72271e16ac23c269f5019a74a7b1d65170e47
git-gui: prevent double UTF-8 conversion

Convert author's name and e-mail address from the UTF-8 (or any other)
encoding in load_last_commit function the same way commit message is
converted.

Amending commits in git-gui without such conversion breaks UTF-8
strings. For example, "\305\201ukasz" (as written by git cat-file) becomes
"\303\205\302\201ukasz" in an amended commit.

Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lib/commit.tcl