summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-13 09:56:58 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 10:26:53 (GMT)
commite517f6f8dc5dbc073904515d6e268e169fa8ef82 (patch)
treef520d8105d16151dd783bad21ac23592f71c8766
parentd3eda7933efdb7a17b663a962f925680f3c36131 (diff)
kajonggtest: set LANG to en_US.UTF-8
-rwxr-xr-xsrc/kajonggtest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kajonggtest.py b/src/kajonggtest.py
index 84bbcf8..8b1dafd 100755
--- a/src/kajonggtest.py
+++ b/src/kajonggtest.py
@@ -366,9 +366,7 @@ def onlyExistingCommits(commits):
"""filter out non-existing commits"""
global KNOWNCOMMITS # pylint: disable=global-statement
if len(KNOWNCOMMITS) == 0:
- env = os.environ.copy()
- env['LANG'] = 'C'
- for branch in subprocess.check_output(b'git branch'.split(), env=env).decode().split('\n'):
+ for branch in subprocess.check_output(b'git branch'.split()).decode().split('\n'):
if 'detached' not in branch and 'no branch' not in branch:
KNOWNCOMMITS |= set(subprocess.check_output(
'git log --max-count=200 --pretty=%h {branch}'.format(
@@ -735,6 +733,9 @@ def main():
"""parse options, play, evaluate results"""
global OPTIONS # pylint: disable=global-statement
+ # we want only english in the logs because i18n and friends
+ # behave differently in kde and kdestub
+ os.environ['LANG'] = 'en_US.UTF-8'
(OPTIONS, args) = parse_options()
OPTIONS.csv = os.path.expanduser(
os.path.join('~', '.kajongg', 'kajongg.csv'))