X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-gui%2Flib%2Fblame.tcl;h=1f3b08f9efff873631d73e128ee97c1b9dad1822;hb=f0817310903312bbc243dd80f066e17a8e0e4b1d;hp=c1cd7f3b92fddb60be9fe261d7b75c5df85b60c1;hpb=168d5bd57b8183f8da0ea30a0d4d3c2422eec4e4;p=git.git diff --git a/git-gui/lib/blame.tcl b/git-gui/lib/blame.tcl index c1cd7f3b9..1f3b08f9e 100644 --- a/git-gui/lib/blame.tcl +++ b/git-gui/lib/blame.tcl @@ -940,9 +940,8 @@ method _showcommit {cur_w lno} { catch { set fd [git_read cat-file commit $cmit] fconfigure $fd -encoding binary -translation lf - if {[catch {set enc $repo_config(i18n.commitencoding)}]} { - set enc utf-8 - } + # By default commits are assumed to be in utf-8 + set enc utf-8 while {[gets $fd line] > 0} { if {[string match {encoding *} $line]} { set enc [string tolower [string range $line 9 end]]