Skip to content

Commit 6063570

Browse files
committed
Use C locale when parsing git output
Setting LANG=C so that on non-English systems, the output of git is consistent.
1 parent b6f20ee commit 6063570

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nbgitpuller/pull.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def execute_cmd(cmd, **kwargs):
1616
yield '$ {}\n'.format(' '.join(cmd))
1717
kwargs['stdout'] = subprocess.PIPE
1818
kwargs['stderr'] = subprocess.STDOUT
19+
kwargs['env'] = dict(os.environ, LANG='C')
1920

2021
proc = subprocess.Popen(cmd, **kwargs)
2122

0 commit comments

Comments
 (0)