hgext/mq.py
changeset 34022 d5b2beca16c0
parent 33489 870560c759ed
child 34083 08346a8fa65f
--- a/hgext/mq.py	Wed Aug 30 14:04:55 2017 -0700
+++ b/hgext/mq.py	Tue Aug 22 20:03:07 2017 -0400
@@ -80,6 +80,7 @@
     cmdutil,
     commands,
     dirstateguard,
+    encoding,
     error,
     extensions,
     hg,
@@ -1206,7 +1207,7 @@
                 p = self.opener(patchfn, "w")
             except IOError as e:
                 raise error.Abort(_('cannot write patch "%s": %s')
-                                 % (patchfn, e.strerror))
+                                 % (patchfn, encoding.strtolocal(e.strerror)))
             try:
                 defaultmsg = "[mq]: %s" % patchfn
                 editor = cmdutil.getcommiteditor(editform=editform)