Hey Antoine,

Some of my Dropbox colleagues just drew my attention to the occurrence
of case folding in pathlib.py. Basically, case folding as an approach
to comparing pathnames is fatally flawed. The issues include:

- most OSes these days allow the mounting of both case-sensitive and
case-insensitive filesystems simultaneously

- the case-folding algorithm on some filesystems is burned into the
disk when the disk is formatted

- case folding requires domain knowledge, e.g. turkish dotless I

- normalization is a mess, even on OSX, where it's better defined than elsewhere

One or more of them may reply-all to this message with more details.

--
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to