On 2013-01-02 01:45:21, vsespb wrote:
Show quoted text> On Mon Dec 31 03:12:01 2012, KWILLIAMS wrote:
> > Yes, I agree. Furthermore, it's not really a function of the OS, but
> > of the filesystem. I don't have
> > a great solution for it but proposals would be good.
Fundementally, it is an error to assume the value of this variable simply by looking at the architecture. Defaults can be wrong, and the value can differ depending on the path in question, as multiple filesystems can be in use.
I don't think this function can serve any useful purpose, as the caller is bound to misuse the information. The only sane thing for a caller to do when considering two foldcase-identical paths is to stat() the files in question and see if they refer to the same physical resource.
I think the correct thing to do is to deprecate this function entirely and insert a big warning that its return value cannot and should not be trusted.