I don't understand what is "ascii transparency" here. When somebody said
about "ascii" seriously, for me it sounds the same as pretend we're
living in the flat world which stand on the back of big turtle.
> For instance OSX uses NFD for file names where most Linux systems use NFC. This means a file name which displays fine might not be selectable via the console (and potentially via other APIs), because the NFC you'll enter (if the file was transferred from OSX to Linux) will not match the on-disk NFD name.
I don't know much about the situation on Linux, but Mac OS X isn't quite as you describe. First of all, Mac OS X doesn't actually use NFC[1] but a custom, stable encoding. Files can be accessed via their NFC name; the kernel will transparently convert any illegal entities. Listing a directory, however, always yields the canonical strings.
In short: I don't believe it'll matter much how you encode file names on Mac OS X, unless you do file name completion, or try to compare paths for equality.
[1] See <http://developer.apple.com/mac/library/technotes/tn/tn1150.html#UnicodeSubtleties>.
[2] Which is described in <http://developer.apple.com/mac/library/technotes/tn/tn1150table.html>.
--
Dan Villiom Podlaski Christiansen
dan...@gmail.com
> On 28 Apr 2010, at 13:41 , Dan Villiom Podlaski Christiansen wrote:
>>
>> On 28 Apr 2010, at 12:45, Masklinn wrote:
>>> For instance OSX uses NFD for file names where most Linux systems use NFC. This means a file name which displays fine might not be selectable via the console (and potentially via other APIs), because the NFC you'll enter (if the file was transferred from OSX to Linux) will not match the on-disk NFD name.
>>
>> I don't know much about the situation on Linux, but Mac OS X isn't quite as you describe. First of all, Mac OS X doesn't actually use NFC[1]
> Erm. I said it used NFD. It's actually an NFD variant, but that's still NFD-based, and it's a variant mostly because NFD was not completely specified at the time
Sorry, I hit “send” too quickly; you're right, of course :)
>> but a custom, stable encoding. Files can be accessed via their NFC name; the kernel will transparently convert any illegal entities. Listing a directory, however, always yields the canonical strings.
> Yes, OSX will perform canonical decomposition on CREATE and LOOKUP (though that doesn't mean there are no problem with that, see [3] for incompatibilities between OSX reporting NFD names and bash expecting NFC names for instance), but most linux distributions will *not* [4], which is why I specifically talked about OSX -> Linux
Well, what Bash does is quite different from anything Mercurial does. I don't believe we do file name completion anywhere. There were some problems previously with path normalisation and the working copy, but I believe they have been fixed. Honestly, I don't see how path normalisation is relevant to configuration file magic markers…
> [3] http://www.mail-archive.com/bug-...@gnu.org/msg04070.html
> [4] http://blogs.sun.com/nico/entry/filesystem_i18n
--