diff -r 7dc160a57025 -r d65519e5dd04 mercurial/subrepo.py --- a/mercurial/subrepo.py Fri Jan 25 14:41:53 2019 -0800 +++ b/mercurial/subrepo.py Sat Feb 02 15:21:35 2019 +0900 @@ -1286,7 +1286,7 @@ if stream: return p.stdout, None - retdata = pycompat.fsencode(p.stdout.read().strip()) + retdata = p.stdout.read().strip() # wait for the child to exit to avoid race condition. p.wait()