Skip to content

Commit e5b5eca

Browse files
committed
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: prati0100/git-gui#68 Signed-off-by: Yuri Konotopov <[email protected]>
1 parent e503389 commit e5b5eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/console.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ method exec {cmd {after {}}} {
9797
lappend cmd 2>@1
9898
set fd_f [_open_stdout_stderr $cmd]
9999
}
100-
fconfigure $fd_f -blocking 0 -translation binary
100+
fconfigure $fd_f -blocking 0 -translation binary -encoding [encoding system]
101101
fileevent $fd_f readable [cb _read $fd_f $after]
102102
}
103103

0 commit comments

Comments
 (0)