diff -r 80f2b63dd83a -r d9585dda63c3 mercurial/encoding.py --- a/mercurial/encoding.py Fri Oct 03 18:42:39 2014 -0700 +++ b/mercurial/encoding.py Fri Oct 03 18:45:56 2014 -0700 @@ -270,8 +270,7 @@ def lower(s): "best-effort encoding-aware case-folding of local string s" try: - s.decode('ascii') # throw exception for non-ASCII character - return s.lower() + return asciilower(s) except UnicodeDecodeError: pass try: