git-gui:handle the encoding of Git's output correctly
commit7020038e1cb65246c66d80ff35b09b71856a8da7
authorKarsten Blees <blees@dcon.de>
Thu, 26 Feb 2015 09:19:45 +0000 (26 17:19 +0800)
committerCloud Chou <515312382@qq.com>
Sat, 7 Mar 2015 00:29:52 +0000 (7 08:29 +0800)
treeae59b983674a802c3942352354945a9f0871bf9c
parentc47d6ec67188cec2a782bc245aa7df4e3cbdbc01
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

Karsten Blees writes this code patch.
Cloud Chou find the reason of the bug.

Thanks-to: dscho
Thanks-to: patthoyts
Signed-off-by: Karsten Blees <blees@dcon.de>
Original-test-by: Cloud Chou <515312382@qq.com>
Signed-off-by: Cloud Chou <515312382@qq.com>
git-gui/git-gui.sh