changeset 16387 | c481761033bd |
parent 16274 | 5d75eb8568d1 |
child 16493 | 72c6240a4b7d |
--- 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: