diff -r 8bfbb25859f1 -r 50f46b771921 mercurial/ui.py --- a/mercurial/ui.py Sat Sep 15 10:35:00 2018 +0900 +++ b/mercurial/ui.py Sat Sep 15 13:31:41 2018 -0400 @@ -1130,10 +1130,10 @@ try: pager = subprocess.Popen( - command, shell=shell, bufsize=-1, + procutil.tonativestr(command), shell=shell, bufsize=-1, close_fds=procutil.closefds, stdin=subprocess.PIPE, stdout=procutil.stdout, stderr=procutil.stderr, - env=procutil.shellenviron(env)) + env=procutil.tonativeenv(procutil.shellenviron(env))) except OSError as e: if e.errno == errno.ENOENT and not shell: self.warn(_("missing pager command '%s', skipping pager\n")