Skip to content

Commit c08f435

Browse files
committed
Make GitPython work on non English systems
1 parent 6b5f70c commit c08f435

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git/cmd.py

+3
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,15 @@ def execute(self, command,
337337
cwd=self._working_dir
338338

339339
# Start the process
340+
env = os.environ.copy()
341+
env['LANG'] = 'C'
340342
proc = Popen(command,
341343
cwd=cwd,
342344
stdin=istream,
343345
stderr=PIPE,
344346
stdout=PIPE,
345347
close_fds=(os.name=='posix'),# unsupported on linux
348+
env=env,
346349
**subprocess_kwargs
347350
)
348351
if as_process:

0 commit comments

Comments
 (0)