How to install git with utf8 names in EGit

I have a java project with files with umlaut charachters in their names. How do I set up a git repository so that it can be used with the EGit Eclipse plugin.

I already tried with a simple

 git init
 git add *

But this turned out to be inoperable, as you can see in this post .

It seems to me that I should tell git that it should treat the file names as utf8.

I am on Max OSX 10.7, but I saw the same problem in Windows 7 Pro.

Any ideas?

+3
source share
3 answers

MacOS ( ) (NFD), (NFC). Git , Git ( Windows) , .

EGit , . non-ascii Mac, EGit JGit , .

Git Windows 1.7.10 UFC-8 NFC.

, "ร„" , , "A" + " ".

$ touch ร„
$ echo ร„|od -tx1a
0000000    c3  84  0a                                                    
           ?  84  nl                                                    
0000003
$ ls|od -tx1a
0000000    41  cc  88  0a                                                
           A   ?  88  nl                                                
0000004
$ 

: 1.7.12 native Git OS X , ASCII, , EGit Git Windows. core.precomposeunicode true.

+2

: core.precomposeunicode true, , commit 750b2e4 (peff)

t3910: core.precomposeunicode

git (, git, unicode), git core.precomposeunicode .

, , , , .
, .
, .

, , ( , ).

0

All Articles