1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-05 09:45:13 +00:00

[PR #11741/e59888dd backport][stable-12] Ensure standard locale in run_command (group3-batch3) (#11756)

Ensure standard locale in run_command (group3-batch3) (#11741)

* run_command locale group3 batch3: normalise to LANGUAGE=C, LC_ALL=C



* fix changelog fragment: bugfixes, American English, separate code spans



* fix changelog fragment: correct PR number (11741)



---------


(cherry picked from commit e59888dd7e)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
patchback[bot] 2026-04-08 15:34:34 +02:00 committed by GitHub
parent b4f09831b0
commit e5f9516335
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 22 additions and 13 deletions

View file

@ -153,7 +153,7 @@ def main():
signal = module.params.get("signal")
# we check error message for a pattern, so we need to make sure that's in C locale
module.run_command_environ_update = dict(LANG="C", LC_ALL="C", LC_MESSAGES="C", LC_CTYPE="C")
module.run_command_environ_update = dict(LANGUAGE="C", LC_ALL="C")
if supervisorctl_path:
if os.path.exists(supervisorctl_path) and is_executable(supervisorctl_path):