darwin: define normcase spec and fallback
These will be used in upcoming patches to efficiently create a dirstate
foldmap.
--- a/mercurial/posix.py Wed Apr 01 00:26:07 2015 -0700
+++ b/mercurial/posix.py Tue Mar 31 23:30:19 2015 -0700
@@ -228,7 +228,11 @@
try:
return encoding.asciilower(path) # exception for non-ASCII
except UnicodeDecodeError:
- pass
+ return normcasefallback(path)
+
+ normcasespec = encoding.normcasespecs.lower
+
+ def normcasefallback(path):
try:
u = path.decode('utf-8')
except UnicodeDecodeError: