Sujet : Re: Rationale for aligning data on even bytes in a Unix shell file?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 09. May 2025, 03:22:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvjou3$2bbhn$4@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Pan/0.162 (Pokrosvk)
On Thu, 8 May 2025 01:57:05 -0500, BGB wrote:
Either way, case-insensitivity at the FS level adds complexity.
If you look around some other groups, you will see discussion of a recent
rant from Linus Torvalds on this very issue. Basically, he doesn’t like
case-insensitivity. And he is justified in pointing out that it leads to
more opportunities for bugs in the kernel code. The only reason we need to
have it is because it makes certain things easier for users.
I guess, one intermediate option could be to keep the FS proper as case
sensitive, but then fake case insensitivity at the level of the OS APIs
(based on a system-level locale setting).
There is a standard Unicode locale-independent case-folding algorithm.
That is what Linux implements. At the time of volume initialization, it
only involves setting one filesystem parameter, which says to assume that
all filenames are UTF-8-encoded.