Unicode file name support (gitk and git-gui)
commit2c612f4a28060a063760a76e302b71b165daeea6
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 20:02:20 +0000 (7 21:02 +0100)
committerKarsten Blees <blees@dcon.de>
Thu, 1 Dec 2011 14:57:55 +0000 (1 15:57 +0100)
treee8a2cfccf5326c6a09a90aba75630d243733a892
parent42cf0a369816fa81888b612680a3714a19e02da1
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