mirror of https://github.com/ansible/ansible.git
Need to convert filenames to byte strings before using them in APIs
Under a non-utf-8 locale (for instance, LC_ALL=C), passing a non-ascii filename to many APIs will traceback. Fix that by explicitly converting to byte strings before passing to external APIs. May fix #27262 (cherry picked from commitpull/39358/merge2976b653ce
) Add a changelog for filename encoding in template action fix (cherry picked from commitd90c36e320
)
parent
b5a5211cd4
commit
e7aa8bc0e3
@ -0,0 +1,5 @@
|
||||
---
|
||||
bugfixes:
|
||||
- template action plugin - fix the encoding of filenames to avoid tracebacks on
|
||||
Python2 when characters that are not present in the user's locale are
|
||||
present. (https://github.com/ansible/ansible/pull/39424)
|
Loading…
Reference in New Issue