git-gui: use system encoding to show console output

This change makes non-ascii console output (eg server messages in the `git push` command output) properly render in the git gui windows. Fixes: https://github.com/prati0100/git-gui/issues/68 Signed-off-by: Yuri Konotopov <ykonotopov@gnome.org>

Yuri Konotopov committed Sep 22, 2023 at 22:58 UTC e5b5eca3f226e7b48f61f806c419f66b03db99e6
1 file changed +1 -1
lib/console.tcl
+1 -1
@@ -97,7 +97,7 @@ method exec {cmd {after {}}} {
97 lappend cmd 2>@1
98 set fd_f [_open_stdout_stderr $cmd]
99 }
100 - fconfigure $fd_f -blocking 0 -translation binary
100 + fconfigure $fd_f -blocking 0 -translation binary -encoding [encoding system]
101 fileevent $fd_f readable [cb _read $fd_f $after]
102 }
103