mercurial/config.py
changeset 43276 d201a637c971
parent 43106 d783f945a701
child 43346 6ada8a274b9c
--- a/mercurial/config.py	Fri Oct 11 18:08:50 2019 +0100
+++ b/mercurial/config.py	Thu Oct 17 12:10:42 2019 +0200
@@ -13,6 +13,7 @@
 from .i18n import _
 from .pycompat import getattr
 from . import (
+    encoding,
     error,
     pycompat,
     util,
@@ -173,7 +174,7 @@
                         if inst.errno != errno.ENOENT:
                             raise error.ParseError(
                                 _(b"cannot include %s (%s)")
-                                % (inc, inst.strerror),
+                                % (inc, encoding.strtolocal(inst.strerror)),
                                 b"%s:%d" % (src, line),
                             )
                 continue