[PATCH] Switch CGI stdout to binary on windows - fixes apache issue
Alexis S. L. Carvalho
alexis at cecm.usp.br
Tue Feb 13 08:53:35 UTC 2007
Thus spake Andrei Vermel:
> Switch CGI stdout to binary on windows
I've pushed the patch below to crew-stable - can you double-check that
it also fixes this problem?
Thanks
Alexis
diff -r 31a679ae7eef -r 5a89c61c189c mercurial/hgweb/wsgicgi.py
--- 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
More information about the Mercurial-devel
mailing list