git-gui: handle the encoding of Git's output correctly
If we use 'eval exec $opt $cmdp $args' to execute git command,
tcl engine will convert the output of the git comand with the rule
system default code page to unicode.
But cp936 -> unicode conversion implicitly done by exec is not reversible.
So we have to use git_read instead.
Bug report and an original reproducer by Cloud Chou:
https://github.com/msysgit/git/issues/302
Cloud Chou find the reason of the bug.
Thanks-to: Johannes Schindelin <
[email protected]>
Thanks-to: Pat Thoyts <
[email protected]>
Reported-by: Cloud Chou <[email protected]>
Original-test-by: Cloud Chou <[email protected]>
Signed-off-by: Karsten Blees <[email protected]>
Signed-off-by: Cloud Chou <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Pat Thoyts <[email protected]>