Unicode file name support (gitk and git-gui)
commitdf4b875ca3c7d797d63a89e116d2bf5f4b226246
authorKarsten Blees <blees@dcon.de>
Sat, 4 Feb 2012 20:54:36 +0000 (4 21:54 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 22 Oct 2012 12:30:27 +0000 (22 13:30 +0100)
tree82c208b811937f614a1f8ca88823a0a0979ce878
parentae8facc50041ad861c5d3d935d507fdc28801eef
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