diff -r f473a1fe5c7c -r 609aa973c01d mercurial/posix.py --- a/mercurial/posix.py Wed Apr 01 00:21:10 2015 -0700 +++ b/mercurial/posix.py Wed Apr 01 00:26:07 2015 -0700 @@ -200,6 +200,11 @@ def normcase(path): return path.lower() +# what normcase does to ASCII strings +normcasespec = encoding.normcasespecs.lower +# fallback normcase function for non-ASCII strings +normcasefallback = normcase + if sys.platform == 'darwin': def normcase(path):