Unicode file name support (gitk and git-gui)
commitc7a0fc6e265866e0a6ecb1029f039ca4ae8a3e98
authorKarsten Blees <blees@dcon.de>
Sat, 4 Feb 2012 20:54:36 +0000 (4 21:54 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 10 Apr 2014 18:52:11 +0000 (10 13:52 -0500)
treebf9a5d614ba3f6c1e0dbb46c272bfdecf0fbf778
parent6c4987e8b5b87d6d91fad21a6ba0caa91913e004
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