News for hackers. Stuff that matters.
Re:Things you wish you didn't need to know about S3 by sholladay on Friday May 31, 2024 @01:03AM (#40531663)
macOS is case preserving, though. To me, it’s the best of both worlds. You can stylize your file names and they will be respected, but you don’t have to remember how they are stylized when you are searching for or processing them because search is case insensitive.
Re:Things you wish you didn't need to know about S3 by smt88 on Friday May 31, 2024 @01:06AM (#40531683)
Windows is also case-insensitive but case-preserving
Re:Things you wish you didn't need to know about S3 by self_awareness on Friday May 31, 2024 @01:51AM (#40531911)
Maybe macOS is case-preserving, but it's not encoding-preserving. If you create a file using a composed UTF-8 "A", the filesystem layer will decompose the string to another form, and create the filename using that decomposed form "B". Of course, "A" and "B" when compared can be completely different (even when compared using case insensitivity enabled), yet will point to the same file.

More info here: https://eclecticlight.co/2021/05/08/explainer-unicode-normal...

Re:Things you wish you didn't need to know about S3 by halostatue on Friday May 31, 2024 @12:38PM (#40537235)
macOS (Darwin) has always written filenames as NFD via the macOS APIs. The underlying POSIX-ish APIs may not do NFD, but Finder and every native macOS GUI program gets files in NFD format.
Re:Things you wish you didn't need to know about S3 by self_awareness on Friday May 31, 2024 @04:55PM (#40540133)
And this is different from what I wrote how exactly?

Btw, this has nothing to do with POSIX vs Finder, it's a filesystem driver trait, at least for HFS+, but probably for APFS as well.

Re:Things you wish you didn't need to know about S3 by alt227 on Friday May 31, 2024 @08:13AM (#40534089)
IMO this is the worst possible solution, as what you are seeing is not what you are getting. You do not actually know what is being stored on the file system, and your searches are fuzzy rather than precise.
Re:Things you wish you didn't need to know about S3 by filleduchaos on Friday May 31, 2024 @12:04PM (#40536825)
> You do not actually know what is being stored on the file system

This makes no sense to me. Did the user's file explorer (whether GUI or via commands like `ls`) suddenly disappear?