Skip to content

Commit

Permalink
flatpak: force locale language to be C (#9187)
Browse files Browse the repository at this point in the history
* flatpak: force locale langauge to be C

* add changelog frag

(cherry picked from commit f828bde)
  • Loading branch information
russoz authored and patchback[bot] committed Nov 28, 2024
1 parent 4152770 commit ac44d2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/9187-flatpak-lang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- flatpak - force the locale language to ``C`` when running the flatpak command (https://github.com/ansible-collections/community.general/pull/9187, https://github.com/ansible-collections/community.general/issues/8883).
2 changes: 2 additions & 0 deletions plugins/modules/flatpak.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ def main():
if not binary:
module.fail_json(msg="Executable '%s' was not found on the system." % executable, **result)

module.run_command_environ_update = dict(LANGUAGE='C', LC_ALL='C')

installed, not_installed = flatpak_exists(module, binary, name, method)
if state == 'absent' and installed:
uninstall_flat(module, binary, installed, method)
Expand Down

0 comments on commit ac44d2f

Please sign in to comment.