Re: git on MacOSX and files with decomposed utf-8 file names

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

 




On Wed, 23 Jan 2008, Kevin Ballard wrote:
> 
> Well yes, any context in which a string is treated as Unicode instead of an
> opaque sequence of bytes will probably lead to normalization at some point
> (e.g. when searching text, I'm going to want Märchen and Märchen to be treated
> as the same string).

As pointed out (multiple times), this is only true if the programmer is a 
moron.

You do not need to - and *should* not - convert to a common normalization 
in order to compare to Uncode strings. You should just compare them with a 
Unicode-aware comparison routine. It will be faster, and it will avoid 
corrupting the input.

Sadly, stupid people are much too common.

		Linus
-
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