Use lf translation rather than binary when reading commit data.
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.)
This commit is contained in:
parent
94a2eede68
commit
d6e8149bc5
2
gitk
2
gitk
@ -48,7 +48,7 @@ proc getcommits {rargs} {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
set leftover {}
|
set leftover {}
|
||||||
fconfigure $commfd -blocking 0 -translation binary
|
fconfigure $commfd -blocking 0 -translation lf
|
||||||
fileevent $commfd readable "getcommitlines $commfd"
|
fileevent $commfd readable "getcommitlines $commfd"
|
||||||
$canv delete all
|
$canv delete all
|
||||||
$canv create text 3 3 -anchor nw -text "Reading commits..." \
|
$canv create text 3 3 -anchor nw -text "Reading commits..." \
|
||||||
|
Loading…
Reference in New Issue
Block a user