# HG changeset patch # User Thomas Arendsen Hein # Date 1166108849 -3600 # Node ID 9c84884907243f6824d93a8bda7e844ebc8315ad # Parent 729f354f3f09eb3c6e976eeef17f5a2fa9cd30d1 Set charset encoding for hgwebdir, too. (And remove extra spaces in the corresponding place in hgweb) diff -r 729f354f3f09 -r 9c8488490724 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Tue Dec 12 15:34:11 2006 -0600 +++ b/mercurial/hgweb/hgweb_mod.py Thu Dec 14 16:07:29 2006 +0100 @@ -655,7 +655,7 @@ def run_wsgi(self, req): def header(**map): header_file = cStringIO.StringIO( - ''.join(self.t("header", encoding = util._encoding, **map))) + ''.join(self.t("header", encoding=util._encoding, **map))) msg = mimetools.Message(header_file, 0) req.header(msg.items()) yield header_file.read() diff -r 729f354f3f09 -r 9c8488490724 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Tue Dec 12 15:34:11 2006 -0600 +++ b/mercurial/hgweb/hgwebdir_mod.py Thu Dec 14 16:07:29 2006 +0100 @@ -61,7 +61,8 @@ def run_wsgi(self, req): def header(**map): - header_file = cStringIO.StringIO(''.join(tmpl("header", **map))) + header_file = cStringIO.StringIO( + ''.join(tmpl("header", encoding=util._encoding, **map))) msg = mimetools.Message(header_file, 0) req.header(msg.items()) yield header_file.read()