diff --git a/packaging/os/yum.py b/packaging/os/yum.py index c841d4a0ddb..b25cc783fa3 100644 --- a/packaging/os/yum.py +++ b/packaging/os/yum.py @@ -657,7 +657,8 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos): changed = True - rc, out, err = module.run_command(cmd) + lang_env = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C') + rc, out, err = module.run_command(cmd, environ_update=lang_env) if (rc == 1): for spec in items: