Unicode file name support (gitk and git-gui)
commit31b0c949cb6e48b92b5f7c8a84e3e063f8dd6764
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 20:02:20 +0000 (7 21:02 +0100)
committerKarsten Blees <blees@dcon.de>
Sat, 8 Jan 2011 16:30:18 +0000 (8 17:30 +0100)
tree1d672486cad1236387651e2e193bf02788e5656a
parente77f07658cc02a7a1f49425d067b32f8a2b87702
Unicode file name support (gitk and git-gui)

Assumes file names in git tree objects are UTF-8 encoded.

On most unix systems, the system encoding (and thus the TCL system
encoding) will be UTF-8, so file names will be displayed correctly.

On Windows, it is impossible to set the system encoding to UTF-8. Changing
the TCL system encoding (via 'encoding system ...', e.g. in the startup
code) is explicitly discouraged by the TCL docs.

Change gitk and git-gui functions dealing with file names to always convert
from and to UTF-8.

Signed-off-by: Karsten Blees <blees@dcon.de>
git-gui/git-gui.sh
git-gui/lib/browser.tcl
git-gui/lib/index.tcl
gitk-git/gitk