[issue2177] web.encoding in per repository hgrc in hgwebdir is used for all repositories

flod bugs at mercurial.selenic.com
Mon May 10 00:47:57 UTC 2010


New submission from flod <florian.dufner at uni-ulm.de>:

Mercurial 1.5.2, Python 2.6.5, Apache 2.2.15, mpm_prefork, mod_wsgi,
hgwebdir.wsgi

I uncommented
import os
os.environ["HGENCODING"] = "UTF-8"
in hgwebdir.wsgi as nearly all of our repositories are in UTF-8.

One repository is in ISO-8859-15 so I thought I can use
[web]
encoding=iso-8859-15
in the <repository>/.hg/hgrc for this repository (not the global
hgweb.config) to configure it this way.
While this works out for the iso-8859-15 repository, all other repositories
now have charset=iso-8859-15 too (instead of UTF-8), when accessing via
http/rss/atom.

When I restart http/mod_wsgi at first I get charset=UTF-8, but with the
first access to the "iso-8859-15" repository the charset will be set to that
value again.

For me it looks like web.encoding is used globally and not per repository.
This will be specific to the setup with hgwebdir.wsgi (or maybe any other
setup with mod_wsgi).

hgweb.config:
[web]
style = paper

[paths]
/ = /srv/www/hg/**

----------
messages: 12463
nosy: flod
priority: bug
status: unread
title: web.encoding in per repository hgrc in hgwebdir is used for all repositories

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2177>
____________________________________________________


More information about the Mercurial-devel mailing list