Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git, Mac OS X and accented characters

Tags:

git

macos

utf-8

On MacOSX with Git, there is a problem with different UTF8 representations of filename encodings. (Similar problems also exists in SVN.)

There is a patch for this here.

I wonder if there is any bug report (in their bug tracker which I haven't found yet) with any discussion about why this haven't been pulled yet or if anyone is working on it, etc.

like image 565
Albert Avatar asked Oct 01 '11 11:10

Albert


2 Answers

Enable core.precomposeunicode on the Mac

git config --global core.precomposeunicode true

Then reclone the repository. For this to work, you need to have at least Git 1.7.12, which is bundled with Xcode 4.6.

That's it.

like image 161
chicken Avatar answered Oct 22 '22 21:10

chicken


This problem is very known and very understood, see, for example this one. Linus have some voice on this thread too.

There are some patch that paper over the problem, and no developer care enough / have to skill to fix it in the proper way. Maybe, i guess, it is impossible to fix this without breaking old commits.

like image 39
J-16 SDiZ Avatar answered Oct 22 '22 20:10

J-16 SDiZ