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