From: Wincent Colaiuta Date: Fri, 25 Jan 2008 12:53:54 GMT Subject: Re: On pathnames Message-ID: In-Reply-To: El 25/1/2008, a las 13:25, Johannes Schindelin escribió: > The strange thing is that > > http://colabti.de/irclogger/irclogger_log/git?date=2008-01-25,Fri&sel=57#l89 > > the command line seems not to be mangling the name. > > Summary: > > it seems that for some strange reason, "git add Märchen" puts the > mangled > filename into the index, even if "echo Märchen" shows the unmangled > filename. > > Ciao, > Dscho Not sure if I grokked the IRC interchange fully but check this out: $ touch Märchen $ echo Märchen | xxd -g1 0000000: 4d 61 cc 88 72 63 68 65 6e 0a Ma..rchen. $ echo Märchen | xxd -g1 0000000: 4d c3 a4 72 63 68 65 6e 0a M..rchen. The first one shows me creating the file, then typing "echo M" and hitting tab so that the shell autocompletes the filename for me based on what it sees in the current directory. Note how it's decomposed. The second one shows me manually typing the string "Märchen" with no tab autocompletion (literally typing ¨ then a), and you'll notice that this time it is precomposed. So that might explain why "echo Märchen" is showing an unmangled name; if he just typed it out like I did then that would be the expected result. Cheers, Wincent