docker-library / python

Docker Official Image packaging for Python
https://www.python.org/
MIT License
2.5k stars 1.04k forks source link

LANG C.UTF-8 issue status? #887

Closed nfantone closed 3 months ago

nfantone commented 7 months ago

I've noticed that almost every image on here has these lines defined:

# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8

It looks like the linked issue was closed back in 2017 and it might not be relevant anymore. I'm curious: are there any particular reasons to keep this around?

EDIT: Just saw that there was a failed attempt to remove LANG before — however, the cause of those errors seems unclear and we're still linking to an issue that has been closed/resolved for several years.

LaurentGoderre commented 7 months ago

@tianon @yosifkit I wonder if we can try removing it to 3.13 since it's in a RC state. If it works we can just keep it for versions prior to 3.13

tianon commented 7 months ago

Yeah, we should probably update to link to the latest failed attempt to remove it (https://github.com/docker-library/python/pull/570, I think). The failures there make me very hesitant to try again without concrete evidence that we won't create similar problems again.