Re: [RFC PATCH] Re: Empty directories...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Jul 21, 2007, at 1:38 PM, David Kastrup wrote:

Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes:

So git filenames are very much a "stream of bytes", not anything
else. And they need to sort 100% reliably, always the same way, and
never with any localized meaning.

There is some utf-8/Unicode trouble to be expected in connection with
that eventually: some, but not all operating and/or file systems
canonicalize file names, replacing accented letters by a combining
accent and the letter.  But that's beside the point.

This issue exists today. OS X does a number of things to filenames, one of which is normalizing all UTF. The resulting error is wholly non-intuitive, but easy to solve. Git thinks both that the file exists under the name it expects and that the file is being ignored as the name OS X uses. The solution is to put the OS X normalized form into .git/info/exclude. Any other solution involves platform- dependent hackery and inclusion of Unicode libraries. I perused this for a short while some months ago, but was convinced to leave it be.

~~ Brian
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux