Submitter | phabricator |
---|---|
Date | Jan. 14, 2018, 8:13 p.m. |
Message ID | <b96b06dbcdcf5c9093244aee32c68a5a@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/26746/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -44,6 +44,7 @@ from mercurial.node import hex from mercurial import ( + encoding, registrar, ui as uimod, util, @@ -182,7 +183,7 @@ fp.write(fmt % args) except (IOError, OSError) as err: self.debug('warning: cannot write to blackbox.log: %s\n' % - err.strerror) + encoding.strtolocal(err.strerror)) # do not restore _bbinlog intentionally to avoid failed # logging again else: