# HG changeset patch # User Matt Mackall # Date 2016-04-16 20:14:25 # Node ID 9d3e280864fb686a3bfeafdfa92fa85a21f941f1 # Parent 16390f4cccf05759c12693f2f0d55b8c2511ad9f subrepo: disable localizations when calling Git (issue5176) Spotted by Aidar Sayfullin. diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -1387,6 +1387,8 @@ class gitsubrepo(abstractsubrepo): self.ui.debug('%s: git %s\n' % (self._relpath, ' '.join(commands))) if env is None: env = os.environ.copy() + # disable localization for Git output (issue5176) + env['LC_ALL'] = 'C' # fix for Git CVE-2015-7545 if 'GIT_ALLOW_PROTOCOL' not in env: env['GIT_ALLOW_PROTOCOL'] = 'file:git:http:https:ssh'