diff --git a/mercurial/posix.py b/mercurial/posix.py --- a/mercurial/posix.py +++ b/mercurial/posix.py @@ -217,8 +217,7 @@ if sys.platform == 'darwin': ''' 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: