changeset 4076:5a89c61c189c

Switch CGI stdout to binary on windows Problem diagnosed by Andrei Vermel.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 13 Feb 2007 06:50:00 -0200
parents 31a679ae7eef
children 1305ba7dee88
files mercurial/hgweb/wsgicgi.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/wsgicgi.py	Fri Feb 09 20:50:41 2007 +0300
+++ b/mercurial/hgweb/wsgicgi.py	Tue Feb 13 06:50:00 2007 -0200
@@ -9,8 +9,10 @@
 # http://www.python.org/dev/peps/pep-0333/#the-server-gateway-side
 
 import os, sys
+from mercurial import util
 
 def launch(application):
+    util.set_binary(sys.stdout)
 
     environ = dict(os.environ.items())
     environ['wsgi.input'] = sys.stdin