Skip to content

Commit

Permalink
Use 'C' locale for dependency detection subprocess
Browse files Browse the repository at this point in the history
Fixes parsing for localized output.
  • Loading branch information
juergenhoetzel committed Jun 1, 2018
1 parent 6b03555 commit 54327a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/exodus_bundler/dependency_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def find_owner(self, path):
if not self.cache_exists or not self.commands_exist:
return None
args = self.owner_command + [path]
process = subprocess.Popen(args, stdout=subprocess.PIPE)
env = os.environ.copy()
env['LC_ALL'] = 'C'
process = subprocess.Popen(args, stdout=subprocess.PIPE, env=env)
stdout, stderr = process.communicate()
output = stdout.decode('utf-8').strip()
match = re.search(self.owner_regex, output)
Expand Down

0 comments on commit 54327a2

Please sign in to comment.