diff -r ccc173d0914e -r c481761033bd mercurial/encoding.py --- a/mercurial/encoding.py Tue Apr 10 12:07:16 2012 -0500 +++ b/mercurial/encoding.py Tue Apr 10 12:07:18 2012 -0500 @@ -168,6 +168,10 @@ def lower(s): "best-effort encoding-aware case-folding of local string s" try: + return s.encode('ascii').lower() + except UnicodeDecodeError: + pass + try: if isinstance(s, localstr): u = s._utf8.decode("utf-8") else: