News for hackers. Stuff that matters.
Re:WorstFit: Unveiling Hidden Transformers in Windows ANSI by jeroenhd on Friday January 10, 2025 @05:48AM (#42654537)
I don't believe they do. Maybe the documentation will tell you it must be, but in practice file names with broken UTF-16 can be created.
Re:WorstFit: Unveiling Hidden Transformers in Windows ANSI by cryptonector on Friday January 10, 2025 @11:54AM (#42657384)
It's the same on Unix.

On Unix the reason for this is that the kernel has no idea what codeset you're using for your strings in user-land, so filesystem-related system calls have to limit themselves to treating just a few ASCII codepoints as such (mainly NUL, `/`, and `.`).