mercurial/posix.py
changeset 22781 70624fda193d
parent 22246 331cbf088c4c
child 22946 77c121da6143
--- a/mercurial/posix.py	Fri Oct 03 19:58:26 2014 -0700
+++ b/mercurial/posix.py	Fri Oct 03 18:47:28 2014 -0700
@@ -217,8 +217,7 @@
         '''
 
         try:
-            path.decode('ascii') # throw exception for non-ASCII character
-            return path.lower()
+            return encoding.asciilower(path)  # exception for non-ASCII
         except UnicodeDecodeError:
             pass
         try: