Thread (36 messages) flat view 36 messages, 14 authors, 2016-06-15

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

From: Dmitry Potapov <hidden>
Date: 2016-06-15 22:44:07

On Jan 23, 2008 7:58 PM, Kevin Ballard [off-list ref] wrote:
On Jan 23, 2008, at 4:40 AM, Mike Hommey wrote:
quoted
That's the point. It's stored in NFC, but what applications see is
NFD.
I was actually asking for you to show this instead of just asserting
it, but I realized I have access to an SMB share myself so I just
tested.

And you're right. That's very curious. I guess they did that because
the entire Carbon stack was written assuming NFD (back at the same
time HFS+ was created), and they wanted to provide a consistent
interface to applications.
Wait, did you tell us some time ago that normalization does not
matter and you just need to treat strings "as text"? Now, it looks
like the Carbon stack does not treat strings "as text". How come?

Maybe, you should stop lying and admit that changing Unicode
strings does matter even if they remain equivalent.
Since the filesystem already uses NFC,
renormalizing to NFD shouldn't lose anything (want the original
representation back? just normalize back to NFC).
On Windows, you can create two *different* files -- one with NFC
and the other with NFD name. I wonder, how it is going to work
with your renormalization back and force.

Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help