Specify that the popen4 is text and not binary.
Fri Aug 26 14:32:13 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Specify that the popen4 is text and not binary.
popen4 call takes a mode parameter that should specify if the fds are text or
binary. Thanks to Gordon Heydon for reporting it.
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2014-04-25 23:12:24.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2014-04-25 23:12:24.000000000 +0000
@@ -341,7 +341,7 @@
object with its output."""
os.chdir(config.repodir)
cmd = config.darcspath + "darcs " + params
- inf, outf = os.popen4(cmd, 'r')
+ inf, outf = os.popen4(cmd, 't')
return outf