Show More
@@ -64,7 +64,8 b' class hgweb(object):' | |||
|
64 | 64 | self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) |
|
65 | 65 | self.maxfiles = int(self.config("web", "maxfiles", 10)) |
|
66 | 66 | self.allowpull = self.configbool("web", "allowpull", True) |
|
67 |
|
|
|
67 | encoding.encoding = self.config("web", "encoding", | |
|
68 | encoding.encoding) | |
|
68 | 69 | |
|
69 | 70 | def run(self): |
|
70 | 71 | if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
@@ -160,7 +161,7 b' class hgweb(object):' | |||
|
160 | 161 | |
|
161 | 162 | try: |
|
162 | 163 | tmpl = self.templater(req) |
|
163 |
ctype = tmpl('mimetype', encoding= |
|
|
164 | ctype = tmpl('mimetype', encoding=encoding.encoding) | |
|
164 | 165 | ctype = templater.stringify(ctype) |
|
165 | 166 | |
|
166 | 167 | # check read permissions non-static content |
@@ -219,7 +220,7 b' class hgweb(object):' | |||
|
219 | 220 | # some functions for the templater |
|
220 | 221 | |
|
221 | 222 | def header(**map): |
|
222 |
yield tmpl('header', encoding= |
|
|
223 | yield tmpl('header', encoding=encoding.encoding, **map) | |
|
223 | 224 | |
|
224 | 225 | def footer(**map): |
|
225 | 226 | yield tmpl("footer", **map) |
@@ -70,6 +70,8 b' class hgwebdir(object):' | |||
|
70 | 70 | elif isinstance(self.conf, dict): |
|
71 | 71 | paths = self.conf.items() |
|
72 | 72 | |
|
73 | encoding.encoding = self.ui.config('web', 'encoding', | |
|
74 | encoding.encoding) | |
|
73 | 75 | self.motd = self.ui.config('web', 'motd') |
|
74 | 76 | self.style = self.ui.config('web', 'style', 'paper') |
|
75 | 77 | self.stripecount = self.ui.config('web', 'stripes', 1) |
General Comments 0
You need to be logged in to leave comments.
Login now