4 ms·
> The only time that English In the comment you replied to you've just been given a critical example, and it seems like you ignored it to talk just about Engli
by asveikau 8y ago
> The only time that English
In the comment you replied to you've just been given a critical example, and it seems like you ignored it to talk just about English.
Get a Turk and an Englishman (maybe have them walk into a bar). Show them the letter I and say, "what is the lowercase of this?" They give you different answers.
So what should your kernel do about open("I.txt", O_RDONLY), when the directory entry has it as "i.txt"? Tell the Turk ENOENT, and give the Englishman a file descriptor? What happens when the user changes languages and has a filename stored somewhere? I would argue it's not the right layer to solve the problem.
- lisper 8y agoThis has nothing to do with case-sensitivity. This has to do with the fact that the glyph that looks like "I" stands for different characters in different languages. That is a problem in and of itself, but the way to solve that problem is not to introduce case-sensitivity and all of its associated problems into the file system.
- geofft 8y agoWhat are the associated problems?
- lisper 8y agoAmbiguity and the likelihood of making a mistake. If you have N>1 files whose names are only distinguished by capitalization it's going to be very hard to tell which is which. Do you want thisfile or thisFile or Thisfile or ThisFile? (Now imagine being asked that question verbally.)
- geofft 8y agoShould the filesystem also ban you from having files named both "thisfile" and "thisfilе" (Cyrillic lowercase ye)? In what character sets?
- lisper 8y agoIMHO yes. That kind of ambiguity can be a serious security risk.
- asveikau 8y agoYou said earlier that a distinct glyph looking identical to Latin I with its own lowercase is a problem, but you also say Cyrillic E should be folded into the Latin one? So should Turkish I with its own lowercase be folded into the normal Latin one or not? At any rate, I recognize you disagree with this, but there's something to be said for the filesystem to be a bag of bytes that doesn't care about any of this. Let higher-level, more user-facing pieces concern themselves with it. They're much more likely to know more about the end user's expectations than ext4.
- lisper 8y ago> you also say Cyrillic E should be folded into the Latin one No, not folded in. I don't know how I would solve the problem of identical glyphs. It's a very hard problem. > there's something to be said for the filesystem to be a bag of bytes that doesn't care about any of this Fair enough.
- bloak 8y agoAnd also I, l and 1, which look the same in some fonts!