Re: vfat: Broken case-insensitive support for UTF-8

From: Al Viro
Date: Sun Jan 19 2020 - 19:09:41 EST


On Mon, Jan 20, 2020 at 12:33:48AM +0100, Pali RohÃr wrote:

> > Does the behaviour match how Windows handles that thing?
>
> Linux behavior does not match Windows behavior.
>
> On Windows is FAT32 (fastfat.sys) case insensitive and file names "Ä"
> and "Ä" are treated as same file. Windows does not allow you to create
> both files. It says that file already exists.

So how is the mapping specified in their implementation? That's
obviously the mapping we have to match.

> > That's the only reason to support that garbage at all...
>
> What do you mean by garbage?

Case-insensitive anything... the only reason to have that crap at all
is that native implementations are basically forcing it as fs
image correctness issue. It's worthless on its own merits, but
we can't do something that amounts to corrupting fs image when
we access it for write.