diff -r 7e9c7d1d65cb -r faf75a701aca mercurial/dispatch.py --- a/mercurial/dispatch.py Sun Mar 19 00:21:26 2017 -0400 +++ b/mercurial/dispatch.py Sun Mar 19 00:22:04 2017 -0400 @@ -94,7 +94,7 @@ def _mayberepr(a): if ' ' in a: - return repr(a) + return encoding.strtolocal(repr(a)) return a def _formatargs(args):