mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +00:00
Reset all locale environment variables before running svn commands
We screenscrape the output of svn(1), so better ensure it is using the C locale. Fixes #3255
This commit is contained in:
@@ -216,7 +216,10 @@ def main():
|
||||
export = module.params['export']
|
||||
switch = module.params['switch']
|
||||
|
||||
os.environ['LANG'] = 'C'
|
||||
# We screenscrape a huge amount of svn commands so use C locale anytime we
|
||||
# call run_command()
|
||||
module.run_command_environ_update = dict(LANG='C', LC_ALL='C', LC_MESSAGES='C', LC_CTYPE='C')
|
||||
|
||||
svn = Subversion(module, dest, repo, revision, username, password, svn_path)
|
||||
|
||||
if export or not os.path.exists(dest):
|
||||
|
||||
Reference in New Issue
Block a user