]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: use system encoding to show console output
authorYuri Konotopov <ykonotopov@gnome.org>
Fri, 22 Sep 2023 18:58:39 +0000 (22:58 +0400)
committerYuri Konotopov <ykonotopov@gnome.org>
Sun, 8 Dec 2024 18:14:45 +0000 (22:14 +0400)
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>
lib/console.tcl

index bb6b9c889e20a31ce836582c1c412d8603df2212..fafafb81f1269c1a1a130f66c335f7d4a6f27bb9 100644 (file)
@@ -97,7 +97,7 @@ method exec {cmd {after {}}} {
                lappend cmd 2>@1
                set fd_f [_open_stdout_stderr $cmd]
        }
-       fconfigure $fd_f -blocking 0 -translation binary
+       fconfigure $fd_f -blocking 0 -translation binary -encoding [encoding system]
        fileevent $fd_f readable [cb _read $fd_f $after]
 }