Re: OS X and umlauts in file names
- From
Martin Langhoff <martin.langhoff@gmail.com>
- Date
- Nov 23, 2009, 18:29 UTC
- Message-ID
- <46a038f90911231029k4da4f37ai44d1b7a7aeefd52e@mail.gmail.com>
- In-Reply-To
- <4B0AD02E.1040408@syntevo.com>
On Mon, Nov 23, 2009 at 7:10 PM, Thomas Singer <thomas.singer@syntevo.com> wrote:
> I can't simply tunnel the file name as byte array to the > invoked Git command - I simply don't know how to transform the characters of > the file name to a representation the Git command line client will > understand[2].
Ouch - so git is respecting whatever name the user and/or OS have picked, but Java wants to canonicalize it, and whatever scheme it uses does not match OSX? That must hurt Java usage on OSX a lot. Sure they have a workaround...?
Suggestions:
1 - Configure Java to canonicalize in the same style as OSX. Actually, OSX's canonicalization is somewhat arbitrary so I think it exposes a call to canonicalize a string "the right way".
2 - Many git calls accept filenames via STDIN - Java will surely write binary there...
3 - xargs with its -z parameter can complement #2
hth,
m
-- martin.langhoff@gmail.com martin@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff