Question:
I’ve been struggling with trying to teach msysgit
how to deal with German umlauts (ä ö ü) in e.g. commit comments. No luck …..
So I thought I might try to use PowerShell and its git integration instead (PoshGit). But again – no luck:
1 2 3 4 5 6 7 8 9 |
D:\temp\test [ +12 ~0 -0 !]> git add --all D:\temp\test [ +12 ~0 -0]> git commit -m "Einige Dateien hinzugefügt" Warning: commit message does not conform to UTF-8. You may want to amend it after fixing the message, or set the config variable i18n.commitencoding to the encoding your project uses. [master (root-commit) 085b7d6] Einige Dateien hinzugef?gt 12 files changed, 3320 insertions(+), 0 deletions(-) |
(“Einige Dateien hinzugefügt” = some files added)
Interesting – I could have sworn that the German umlauts are part of the UTF-8 standard….. hmm……
And sure enough:
1 2 3 4 |
D:\temp\test [master]> git log 085b7d6 (HEAD, master) Einige Dateien hinzugef |
No banana 🙁
WHAT ON EARTH do I have to do to get either msysgit
(the “Git bash”) or PowerShell to cooperate with Git on the commit comments? I’m not even asking for supporting file names with Umlauts… just the comments (pure text) for now…..
Also: putting this
1 2 3 4 |
[i18n] commitencoding = ISO-8859-1 logoutputencoding = ISO-8859-1 |
into my .gitconfig
also doesn’t seem to have any effect on my commit comments and git log
…. 🙁
Any ideas? Thoughts? Pointers??
Answer:
There’s an unofficial installer for the experimental Unicode version of msysgit which you might want to give a try. Feedback to that installer is appreciated on the msysgit mailing list.