-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Removing LANG env var from 3.10-rc and templates #570
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
Conversation
Unfortunately this won't work as-is (post-merge we'll have @docker-library-bot immediately apply the template change across all image variants/versions), but this is really interesting! From my reading of that issue, it sounds like it's been unnecessary since Python 3.7? 😲 (It's too bad 3.6 isn't quite EOL yet or this would be really easy for us to remove! 😄) |
Yeah as far as I can see it is obsolete for at least version 3.7 (there are some discussions for earlier versions, but I'm not sure :)) So what should we do? Will changing only for 3.10-rc work? (ofc later removing it in templates) or should we wait for 3.6's end of the life? |
Hi! Now that Python 3.6 is EOL, is this worth reconsidering? :-) |
d43d3fc
to
0374ef2
Compare
Yes, thank you! Was waiting for the checks but hadn't gotten back to it yet. 🙏 |
Changes: - docker-library/python@0b9aee9: Removing LANG env var (docker-library/python#570) - docker-library/python@d298086: Merge pull request docker-library/python#716 from edmorley/remove-with-system-ffi - docker-library/python@028012a: Remove redundant `--with-system-ffi` configure option - docker-library/python@1999778: Restore /usr/local/bin/python as a relative symlink to /usr/local/bin/python3, rather than an absolute one (docker-library/python#714)
We are using python:3.9-slim-buster in our projects and after switched to After switching back to @henryh9n Let me know if you need some more info. |
python:3.8 either falls apart to UnicodeEncodeErrors in cause of 'ascii' not knowing about utf-8 characters (anyway I'm thinking so). But, when we settled up |
Can we come up with a tiny reproducer? 😇
|
In our case there is a problem with uWSGI when using latest python:3.9-slim-buster We place
If encoding is set to Currently I have no idea why uwsgi don't use system locale |
We ran into issues after updating as well; scripts which use Click will refuse to run without a Unicode locale. Changing the locale like this has some pretty wide-ranging effects, I think it would be better to revert this change and leave the locale as |
Huh. An attempt to create a minimal example of the failure using Click is not showing the issue. I may need to dig a bit to figure out a minimal set of steps to reproduce. |
This update broke all my CI, not only because it changed the basic behavior of Ex:
And consequently:
I highly suggest to roll this back thinking about all the current containers breaking in strange ways without any clear and easily identifiable reason. |
This also broke my CI. I don't completely grasp it, but opening files with German umlauts in the path doesn't work anymore:
suddenly gives
|
Reverted via #719 😞 🙈 |
Changes: - docker-library/python@1cf43e7: Merge pull request docker-library/python#719 from docker-library/revert-570-lang_env_removed - docker-library/python@f871d04: Revert "Removing LANG env var (docker-library/python#570)"
@MT-Cash I don't suppose you have some more details? (Just to help anyone in the future trying to work out when it's finally safe to remove I can't reproduce your exception using any of:
|
@drzraf I can reproduce the failure in your post. However, some observations:
|
Whilst #719 resolved this issue (by reverting the python/Dockerfile-linux.template Lines 22 to 24 in 1cf43e7
It feels like figuring out what broke here, reporting it upstream if appropriate (given the bugs PEPs I've seen seem to suggest this should be resolved already?), and updating the code comment to indicate why |
Since
ENV LANG C.UTF-8
is apparently no longer necessary, removed those from 3.10-rc and templates not to cause confusion.