diff -r 2ded39ef5bf7 -r dd64e229c46b mercurial/crecord.py --- a/mercurial/crecord.py Fri Nov 01 17:39:17 2019 +0100 +++ b/mercurial/crecord.py Fri Nov 01 17:38:07 2019 +0100 @@ -1816,7 +1816,7 @@ 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()