Unicode file name support (gitk and git-gui)
commit799bed21b2f518de1d2fffb5d0fd70dbcd8144b2
authorKarsten Blees <blees@dcon.de>
Sat, 4 Feb 2012 20:54:36 +0000 (4 21:54 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 11 May 2012 22:50:03 +0000 (11 17:50 -0500)
tree43b4f0a2402ecf580b04e3619b439340e80f0d84
parentd9fd404b8d2a34ebe70ae7ad8e6c011693d91c84
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