7

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.

Vincent Robert
  • 35,564
  • 14
  • 82
  • 119
Albert
  • 65,406
  • 61
  • 242
  • 386
  • File the bug report! This question will be more appropriate at their mailing list. – Yuji Oct 01 '11 at 12:17
  • @Yuji: As far as I understood (from [here](http://stackoverflow.com/questions/7620050/where-is-the-bugtracker-of-git)), a mail to the mailinglist *is* filling a bug report. And my linked patch is a mail in that mailinglist. So that is the actual report. But I'm not really sure where to go from there. Or if there is another *real* bug tracker somewhere. – Albert Oct 01 '11 at 12:36

4 Answers4

15

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.

Callahad
  • 1,280
  • 6
  • 9
chicken
  • 1,579
  • 1
  • 13
  • 13
  • Thank you for the suggestion! Unfortunately, after running that command, my `énoncé.js` file still shows up as `"\303\251nonc\303\251.js"`, when I run `$ git status`. Any idea? – Adrien Joly Oct 23 '20 at 10:51
2

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.

J-16 SDiZ
  • 26,473
  • 4
  • 65
  • 84
0

Besides the patch there is a workaround by translating Mac OS X the encoding for git! that seems to work for me.

Community
  • 1
  • 1
Kaj Kandler
  • 318
  • 4
  • 9
0

Well, it was stated here that there is no bug tracker and the common way is to send a mail to their mailing list.

I just did that here. And I messed up the thread a bit. :) Further discussion is here.

Community
  • 1
  • 1
Albert
  • 65,406
  • 61
  • 242
  • 386
  • 1
    Thanks. By the way I had almost the same conversation in this SO question: http://stackoverflow.com/questions/5581857/git-and-the-umlaut-problem-on-mac-os-x – Yuji Oct 01 '11 at 16:02