mercurial/ui.py
changeset 39678 50f46b771921
parent 39340 6f38284b23f4
child 39823 24e493ec2229
--- 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")