Submitter | Denis Laxalde |
---|---|
Date | Oct. 25, 2019, 12:53 p.m. |
Message ID | <5da37487d2dbd296d1ff.1572008034@steppe.local> |
Download | mbox | patch |
Permalink | /patch/42590/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/mail.py b/mercurial/mail.py --- a/mercurial/mail.py +++ b/mercurial/mail.py @@ -342,6 +342,7 @@ def _encode(ui, s, charsets): s.decode('ascii') except UnicodeDecodeError: for ics in (encoding.encoding, encoding.fallbackencoding): + ics = pycompat.sysstr(ics) try: u = s.decode(ics) except UnicodeDecodeError: