5 ms·
That's fascinating. What happens on lookup if there's two different files with canonically equivalent names?
by ridiculous_fish 9y ago
That's fascinating. What happens on lookup if there's two different files with canonically equivalent names?
- cryptonector 9y agoGreat question! You can't have two such files! Say you create a file with a name that has different NFC and NFD forms, and you create it with the NFC form. Then you go try to create it with the NFD form, well, if doing an exclusive create (O_EXCL) then you'll get EEXIST, else you'll open the existing file.
- throwaway2048 9y agoso it infact does do normalization on file create then? How is it managing this without doing so?
- cryptonector 9y agoIt normalizes on LOOKUP, not create. On create it preserves the original form. Think of this as like case-preserving/case-insensitive behavior, but for form rather than case.