[PATCH 5 of 6 STABLE V3] icasefs: use upper() instead of lower() or os.path.normcase()
Matt Mackall
mpm at selenic.com
Tue Dec 13 20:24:36 UTC 2011
On Mon, 2011-12-12 at 22:25 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> # Date 1323677419 -32400
> # Branch stable
> # Node ID 22ae1ea19de2966fe4b13a049a25403cdf1bd8ab
> # Parent 34aba3511c68823a927bf5957f813ae0d3dd4214
> icasefs: use upper() instead of lower() or os.path.normcase()
>
> this patch uses upper() instead of lower() or os.path.normcase() for
> case folding, because lower-ing causes problems in some case
> insensitive filesystems.
>
> for cygwin like environment, upper() is used as normcase() also in
> posix other than darwin.
> see below for detail about problem of lower-ing:
>
> https://blogs.msdn.com/b/michkap/archive/2005/01/16/353873.aspx
..on NTFS. Please don't change anything -else- to upper() without cause.
We don't know what the right algorithm is elsewhere, so switching can
regress.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list