diff --git a/changelogs/fragments/11784-group5-batch13-locale.yml b/changelogs/fragments/11784-group5-batch13-locale.yml new file mode 100644 index 0000000000..b97e8fb92c --- /dev/null +++ b/changelogs/fragments/11784-group5-batch13-locale.yml @@ -0,0 +1,10 @@ +bugfixes: + - awall - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing + (https://github.com/ansible-collections/community.general/issues/11737, + https://github.com/ansible-collections/community.general/pull/11784). + - openwrt_init - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing + (https://github.com/ansible-collections/community.general/issues/11737, + https://github.com/ansible-collections/community.general/pull/11784). + - pip_package_info - set ``LANGUAGE`` and ``LC_ALL`` to ``C`` in ``run_command()`` calls to ensure locale-independent output parsing + (https://github.com/ansible-collections/community.general/issues/11737, + https://github.com/ansible-collections/community.general/pull/11784). diff --git a/plugins/modules/awall.py b/plugins/modules/awall.py index a7418c24fc..2b08d8cf33 100644 --- a/plugins/modules/awall.py +++ b/plugins/modules/awall.py @@ -135,6 +135,7 @@ def main(): required_one_of=[["name", "activate"]], supports_check_mode=True, ) + module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"} global AWALL_PATH AWALL_PATH = module.get_bin_path("awall", required=True) diff --git a/plugins/modules/openwrt_init.py b/plugins/modules/openwrt_init.py index 049ea46e22..e7547066ab 100644 --- a/plugins/modules/openwrt_init.py +++ b/plugins/modules/openwrt_init.py @@ -103,6 +103,7 @@ def main(): supports_check_mode=True, required_one_of=[("state", "enabled")], ) + module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"} # initialize service = module.params["name"] diff --git a/plugins/modules/pip_package_info.py b/plugins/modules/pip_package_info.py index 672038ca50..20a89c85b1 100644 --- a/plugins/modules/pip_package_info.py +++ b/plugins/modules/pip_package_info.py @@ -123,6 +123,7 @@ def main(): ), supports_check_mode=True, ) + module.run_command_environ_update = {"LANGUAGE": "C", "LC_ALL": "C"} packages = {} results = {"packages": {}} clients = module.params["clients"]