docker-library / python

Docker Official Image packaging for Python

Home Page:https://www.python.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LANG C.UTF-8 issue status?

nfantone opened this issue · comments

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.

@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

Yeah, we should probably update to link to the latest failed attempt to remove it (#570, I think). The failures there make me very hesitant to try again without concrete evidence that we won't create similar problems again.