]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: Unicode file name support
authorKarsten Blees <blees@dcon.de>
Sat, 4 Feb 2012 20:54:36 +0000 (21:54 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 11 Jan 2025 17:17:42 +0000 (18:17 +0100)
commit5eb02dd8f08fc3b7ff22320c3311cd1da6a5ab4d
treeb5e32071f4069b75c10e3b89d6726bef3bd295cf
parent4cbe9e0e21fca682d78980a03184071e9fe1c955
gitk: Unicode file name support

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 functions dealing with file names to always convert
from and to UTF-8.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
gitk