-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ansible_galaxy_install: use locale C tentatively, else en_US #5680
ansible_galaxy_install: use locale C tentatively, else en_US #5680
Conversation
7e6e319
to
b1aca8a
Compare
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
@felixfontein I must be doing something dumb again, but I cannot find why that one test is failing. It does not even seem to be related to the change made. |
Actually, I think I found it. The invalid locale stderr output seems to be different in that test platform. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@russoz great news, thanks for fixing this! It needs a changelog fragment though :)
b66cd94
to
a406b2b
Compare
Backport to stable-5: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 488e828 on top of patchback/backports/stable-5/488e828f9b7dcf2867edec72ce35f766d7b54ff0/pr-5680 Backporting merged PR #5680 into main
🤖 @patchback |
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #5722 🤖 @patchback |
* ansible_galaxy_install: use locale C tentatively, else en_US * use custom exception to signal unsupported locale * add step to remove artefacts at the end of the test * add step to remove artefacts at the beginning of the test * comment out context controller * trying with temporary dir as destination * remove collection before test with reqs file * ensure collections are installed in temp dir in tests + check_force * simplified the change * added extra condition for failing locale * improved exception handling * add changelog fragment (cherry picked from commit 488e828)
@russoz thanks for fixing this! |
…cale C tentatively, else en_US (#5722) ansible_galaxy_install: use locale C tentatively, else en_US (#5680) * ansible_galaxy_install: use locale C tentatively, else en_US * use custom exception to signal unsupported locale * add step to remove artefacts at the end of the test * add step to remove artefacts at the beginning of the test * comment out context controller * trying with temporary dir as destination * remove collection before test with reqs file * ensure collections are installed in temp dir in tests + check_force * simplified the change * added extra condition for failing locale * improved exception handling * add changelog fragment (cherry picked from commit 488e828) Co-authored-by: Alexei Znamensky <[email protected]>
SUMMARY
Tries to use locale
C.UTF-8
, if that fails then fall back toen_US.UTF-8
.Fixes #5661
ISSUE TYPE
COMPONENT NAME
ansible_galaxy_install