From 2b8debbc2bda8bb55f627e8b8047812aa59409af Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Wed, 13 Apr 2016 16:03:26 +0200 Subject: [PATCH] Sprinkle some LANG/LC_* where command output is parsed (#2019) --- packaging/os/homebrew.py | 3 +++ packaging/os/homebrew_cask.py | 3 +++ system/svc.py | 2 ++ 3 files changed, 8 insertions(+) mode change 100644 => 100755 packaging/os/homebrew.py mode change 100644 => 100755 packaging/os/homebrew_cask.py mode change 100644 => 100755 system/svc.py diff --git a/packaging/os/homebrew.py b/packaging/os/homebrew.py old mode 100644 new mode 100755 index 94d0ef865c4..077fd46dcc6 --- a/packaging/os/homebrew.py +++ b/packaging/os/homebrew.py @@ -813,6 +813,9 @@ def main(): ), supports_check_mode=True, ) + + module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C') + p = module.params if p['name']: diff --git a/packaging/os/homebrew_cask.py b/packaging/os/homebrew_cask.py old mode 100644 new mode 100755 index e1b721a97b4..aa7d7ed84b8 --- a/packaging/os/homebrew_cask.py +++ b/packaging/os/homebrew_cask.py @@ -481,6 +481,9 @@ def main(): ), supports_check_mode=True, ) + + module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C') + p = module.params if p['name']: diff --git a/system/svc.py b/system/svc.py old mode 100644 new mode 100755 index 0d3a83f6305..6cc8c1d21ef --- a/system/svc.py +++ b/system/svc.py @@ -249,6 +249,8 @@ def main(): supports_check_mode=True, ) + module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C') + state = module.params['state'] enabled = module.params['enabled'] downed = module.params['downed']