diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-27 16:12:51 -0800 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-28 20:46:49 +1100 |
commit | 671bc1538a88d82096a8e59d9ccef4f4a5c40a32 (patch) | |
tree | 2c8e78f7ec697ad9150e7a5ec4db9c3ec58d5729 /gitk | |
parent | d327244a8435539b62d73ab151bd6c46324cbeb6 (diff) | |
download | git-671bc1538a88d82096a8e59d9ccef4f4a5c40a32.tar.gz git-671bc1538a88d82096a8e59d9ccef4f4a5c40a32.tar.xz |
[PATCH] gitk: Use i18n.commitencoding configuration item.
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>
Diffstat (limited to 'gitk')
-rwxr-xr-x | gitk | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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} |