wsgicgi: change stdin to binary mode
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 04 Jun 2007 00:24:48 -0300
changeset 4484 7605da1c3b5c
parent 4483 769cc8ef5b72
child 4497 22ebd6ee5672
child 4498 4dfb9f232a63
wsgicgi: change stdin to binary mode
mercurial/hgweb/wsgicgi.py
--- a/mercurial/hgweb/wsgicgi.py	Mon Jun 04 00:24:48 2007 -0300
+++ b/mercurial/hgweb/wsgicgi.py	Mon Jun 04 00:24:48 2007 -0300
@@ -12,6 +12,7 @@
 from mercurial import util
 
 def launch(application):
+    util.set_binary(sys.stdin)
     util.set_binary(sys.stdout)
 
     environ = dict(os.environ.items())