-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template module not happy with UTF-8 chars in filenames #10110
Comments
Ugh, this is happening in part because of a fix I just added I think. Somewhat strange that this is only triggering with non-ascii though. Although the code deals with encoding and decoding I would expect that dict vs string would be independent of whether the value was non-ascii. I'll see if I can reproduce. If so I should be able to get out a quick fix. |
Ugh. Okay, this is going to be a bit harder than I thought. I was able to fix the initial traceback rather quickly here: 35321ec But that was just hiding the real error:
|
That commit should finish off the fix. I also tested this in the v2 tree and everything worked as expected there. Closing This TicketHi! We believe recent commits (likely detailed above) should resolve this question or problem for you. This will also be included in the next major release. If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular Thank you! |
Works on the devel branch for me, thanks ;) |
Hello, I'm still having issues with that on 2.5.1, as per #27262 that I opened last year. Anything I can do to help getting it fixed? Thanks |
Same on 2.5.2 |
Issue Type: Bug Report
Ansible Version: 1.8.2, 1.9 (devel a63e4c5)
Environment: Ubuntu 14.10
Summary:
Using template module, if the source file contains UTF-8 characters in its name, it makes it barf.
Steps To Reproduce:
test_utf8.yml
Create héhé.txt, run the playbook.
Expected Results: File copied (and rendered).
Actual Results:
Haven't looked a lot further, as I was in a hurry, so I just renamed my files.. It also happens if the directory you're work in has accents in it (I had something like /home/gilles/Technique/Déploiement, and it wouldn't work).
Might get into it deeper if I have time..
The text was updated successfully, but these errors were encountered: