summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/mdist.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py
index 01b40dfd7..17329009b 100644
--- a/mesonbuild/mdist.py
+++ b/mesonbuild/mdist.py
@@ -254,6 +254,9 @@ class HgDist(Dist):
'''Check whether there are uncommitted changes in hg'''
env = os.environ.copy()
env['LC_ALL'] = 'C'
+ # cpython's gettext has a bug and uses LANGUAGE to override LC_ALL,
+ # contrary to the gettext spec
+ env.pop('LANGUAGE', None)
out = subprocess.check_output(['hg', '-R', self.src_root, 'summary'], env=env)
return b'commit: (clean)' not in out