diff options
| author | Yuri Konotopov <ykonotopov@gnome.org> | 2023-09-22 22:58:39 +0400 |
|---|---|---|
| committer | Yuri Konotopov <ykonotopov@gnome.org> | 2024-12-08 22:14:45 +0400 |
| commit | e5b5eca3f226e7b48f61f806c419f66b03db99e6 (patch) | |
| tree | 58652edd3c45371bfcf867722264588db26bca96 | |
| parent | e5033898da23b6e2f6b77320bd0aa613595a50a1 (diff) | |
| download | git-e5b5eca3f226e7b48f61f806c419f66b03db99e6.tar.gz | |
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>
| -rw-r--r-- | lib/console.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/console.tcl b/lib/console.tcl index bb6b9c889e..fafafb81f1 100644 --- a/lib/console.tcl +++ b/lib/console.tcl @@ -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] } |
