Git, particularly git-log seems to not display utf-8 characters in filenames, instead showing an escaped representation. On the other hand, commit messages, as git-log(1) notes, are assumed to be utf-8, and the same utf-8 character used in a commit message is not escaped, and displays ok. Can anyone point me at the documentation for this utf-8 filename escaping, assuming it's not a bug? And did earlier versions of git (circa 2006) perhaps not do that escaping? I have code in ikiwiki that apparently used to work, but is certianly not working with current git, due to this escaping. Here's an example of the inconsistent handling of the same utf-8 character ("ö") in commit messages and filenames. joey@kodama:~/tmp>mkdir utf8; cd utf8; git-init Initialized empty Git repository in /home/joey/tmp/utf8/.git/ joey@kodama:~/tmp/utf8>echo hi > ö joey@kodama:~/tmp/utf8>git add ö; git commit -m 'adding file: ö' Created initial commit ee7d809: adding file: ö 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 "\303\266" joey@kodama:~/tmp/utf-8>git log --stat commit ee7d809d1811b1e1ad485ce3e7274316257029ae Author: Joey Hess <joey@xxxxxxxxxxxxxxxxxx> Date: Thu Sep 25 17:34:10 2008 -0400 adding file: ö "\303\266" | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- see shy jo
Attachment:
signature.asc
Description: Digital signature