# HG changeset patch # User Emmanuel Leblond # Date 2019-11-01 16:38:07 # Node ID dd64e229c46b18bd877b2693c526a7f248409394 # Parent 2ded39ef5bf7e5e86d76e85bbecd2aec989ee01a py3: fix crecord.py's editpatchwitheditor exception message encoding Differential Revision: https://phab.mercurial-scm.org/D7194 diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -1816,7 +1816,7 @@ are you sure you want to review/edit and try: patch = self.ui.edit(patch.getvalue(), b"", action=b"diff") except error.Abort as exc: - self.errorstr = str(exc) + self.errorstr = stringutil.forcebytestr(exc) return None finally: self.stdscr.clear()