diff -r 31a2eb0f74e5 -r d5b2beca16c0 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Wed Aug 30 14:04:55 2017 -0700 +++ b/mercurial/cmdutil.py Tue Aug 22 20:03:07 2017 -0400 @@ -777,7 +777,7 @@ message = '\n'.join(util.readfile(logfile).splitlines()) except IOError as inst: raise error.Abort(_("can't read commit message '%s': %s") % - (logfile, inst.strerror)) + (logfile, encoding.strtolocal(inst.strerror))) return message def mergeeditform(ctxorbool, baseformname): @@ -1099,7 +1099,7 @@ srcexists = False else: ui.warn(_('%s: cannot copy - %s\n') % - (relsrc, inst.strerror)) + (relsrc, encoding.strtolocal(inst.strerror))) return True # report a failure if ui.verbose or not exact: