summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2005-11-23 04:15:01 (GMT)
committerPaul Mackerras <paulus@samba.org>2005-11-23 10:21:33 (GMT)
commit495473c08a957464e7e326ae7bafb477db90fcbe (patch)
tree7c70dd7efc58df81409e7655b443520f7c34c389 /gitk
parent2ed49d542470e265cbebbe1eb8083f61a512c680 (diff)
downloadgit-495473c08a957464e7e326ae7bafb477db90fcbe.zip
git-495473c08a957464e7e326ae7bafb477db90fcbe.tar.gz
git-495473c08a957464e7e326ae7bafb477db90fcbe.tar.bz2
[PATCH] gitk: UTF-8 support
Add gitencoding variable and set it to "utf-8". Use it for converting git-rev-list output. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitk b/gitk
index 7b733e9..ecc1688 100755
--- a/gitk
+++ b/gitk
@@ -19,7 +19,7 @@ proc gitdir {} {
proc getcommits {rargs} {
global commits commfd phase canv mainfont env
global startmsecs nextupdate ncmupdate
- global ctext maincursor textcursor leftover
+ global ctext maincursor textcursor leftover gitencoding
# check that we can find a .git directory somewhere...
set gitdir [gitdir]
@@ -49,7 +49,7 @@ proc getcommits {rargs} {
exit 1
}
set leftover {}
- fconfigure $commfd -blocking 0 -translation lf
+ fconfigure $commfd -blocking 0 -translation lf -encoding $gitencoding
fileevent $commfd readable [list getcommitlines $commfd]
$canv delete all
$canv create text 3 3 -anchor nw -text "Reading commits..." \
@@ -3658,6 +3658,7 @@ set datemode 0
set boldnames 0
set diffopts "-U 5 -p"
set wrcomcmd "git-diff-tree --stdin -p --pretty"
+set gitencoding "utf-8"
set mainfont {Helvetica 9}
set textfont {Courier 9}