Mercurial > hg
diff mercurial/hgweb/wsgicgi.py @ 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 | eb0b4a2d70a9 |
children | 7605da1c3b5c |
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