8000 Merge pull request #68 from FlorianLudwig/master · gitpython-developers/GitPython@011d89d · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 011d89d

Browse files
committed
Merge pull request #68 from FlorianLudwig/master
Fix GitPython on systems with language != english
2 parents 6b5f70c + c08f435 commit 011d89d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git/cmd.py

Lines changed: 3 additions & 0 deletions
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)
0