]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Use lf translation rather than binary when reading commit data.
authorPaul Mackerras <paulus@samba.org>
Sun, 7 Aug 2005 10:01:24 +0000 (20:01 +1000)
committerPaul Mackerras <paulus@samba.org>
Sun, 7 Aug 2005 10:01:24 +0000 (20:01 +1000)
The effect of this is that it allows Tcl to do the locale-specific
conversion of the input data to its internal unicode representation.
That means that commit messages in Russian or other languages should
be displayed correctly now (according to the locale that is in effect.)

gitk

diff --git a/gitk b/gitk
index b38d7cd0ed4fff6b76d591f36e96fef0cc64669b..e21d7a28f1564992263951d575586931c21f511a 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -48,7 +48,7 @@ proc getcommits {rargs} {
        exit 1
     }
     set leftover {}
-    fconfigure $commfd -blocking 0 -translation binary
+    fconfigure $commfd -blocking 0 -translation lf
     fileevent $commfd readable "getcommitlines $commfd"
     $canv delete all
     $canv create text 3 3 -anchor nw -text "Reading commits..." \