Skip to content

Commit

Permalink
[PATCH] gitk: Use i18n.commitencoding configuration item.
Browse files Browse the repository at this point in the history
Hardcoding "utf-8" in the script breaks projects that use local
encoding, so allow setting i18n.commitEncoding.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Junio C Hamano authored and Paul Mackerras committed Nov 28, 2005
1 parent d327244 commit 671bc15
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -3656,7 +3656,14 @@ set datemode 0
set boldnames 0
set diffopts "-U 5 -p"
set wrcomcmd "git-diff-tree --stdin -p --pretty"
set gitencoding "utf-8"

set gitencoding ""
catch {
set gitencoding [exec git-repo-config --get i18n.commitencoding]
}
if {$gitencoding == ""} {
set gitencoding "utf-8"
}

set mainfont {Helvetica 9}
set textfont {Courier 9}
Expand Down

0 comments on commit 671bc15

Please sign in to comment.