# HG changeset patch # User Marcin Kuzminski # Date 2017-01-02 15:05:25 # Node ID 11cb569c017f523379a5452773e874efad21cf38 # Parent 82a881eff9143e298becd0b65a4e36811f838607 locales: fetch proper locale before defaulting to default. diff --git a/vcsserver/http_main.py b/vcsserver/http_main.py --- a/vcsserver/http_main.py +++ b/vcsserver/http_main.py @@ -155,7 +155,7 @@ class HTTPApplication(object): def __init__(self, settings=None): self.config = Configurator(settings=settings) - locale = settings.get('', 'en_US.UTF-8') + locale = settings.get('locale', '') or 'en_US.UTF-8' vcs = VCS(locale=locale, cache_config=settings) self._remotes = { 'hg': vcs._hg_remote,