# HG changeset patch # User Alexis S. L. Carvalho # Date 1171356600 7200 # Node ID 5a89c61c189c91338c19a731f81f62357fc78987 # Parent 31a679ae7eef52e473376df0031049303c5f4d45 Switch CGI stdout to binary on windows Problem diagnosed by Andrei Vermel. diff --git a/mercurial/hgweb/wsgicgi.py b/mercurial/hgweb/wsgicgi.py --- a/mercurial/hgweb/wsgicgi.py +++ b/mercurial/hgweb/wsgicgi.py @@ -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