changeset 36118 | 9e47bfbeb723 |
parent 36047 | 1407c42b302c |
child 36119 | 6ea7f1c10c81 |
--- a/mercurial/mail.py Sun Feb 11 16:56:29 2018 -0800 +++ b/mercurial/mail.py Sun Feb 11 18:47:19 2018 -0800 @@ -206,7 +206,7 @@ return mimetextqp(s, subtype, 'us-ascii') for charset in cs: try: - s.decode(charset) + s.decode(pycompat.sysstr(charset)) return mimetextqp(s, subtype, codec2iana(charset)) except UnicodeDecodeError: pass