Skip to content
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

Stop setting the LANG env var #306

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Stop setting the LANG env var #306

merged 1 commit into from
Dec 16, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Dec 16, 2024

Previously the buildpack would set the LANG env var at build and run time to the value C.UTF-8, to match the official Docker Python images.

However, the env var should not be needed for modern Python, and so the official Docker Python images no longer set it:
docker-library/python#887
docker-library/python#895

In addition, the older issues typically only affected other distros such as alpine, or environments where someone had overridden the system locale, which doesn't apply to the Heroku base images.

GUS-W-17443565.

Previously the buildpack would set the `LANG` env var at build
and run time to the value `C.UTF-8`, to match the official Docker
Python images.

However, the env var should not be needed for modern Python,
and so the official Docker Python images no longer set it:
docker-library/python#887
docker-library/python#895

In addition, the older issues typically only affected other distros
such as alpine, or environments where someone had overridden
the system locale, which doesn't apply to the Heroku base images.
@edmorley edmorley self-assigned this Dec 16, 2024
@edmorley edmorley marked this pull request as ready for review December 16, 2024 15:40
@edmorley edmorley requested a review from a team as a code owner December 16, 2024 15:40
@edmorley edmorley enabled auto-merge (squash) December 16, 2024 15:41
@edmorley edmorley merged commit a531f74 into main Dec 16, 2024
8 checks passed
@edmorley edmorley deleted the rm-lang-env-var branch December 16, 2024 17:06
heroku-linguist bot added a commit that referenced this pull request Dec 18, 2024
## heroku/python

### Changed

- The build now fails early if known problematic Python and pip-related env vars have been set by the user or earlier buildpacks. ([#308](#308))
- The `PIP_PYTHON` env var is now only set at build time. ([#307](#307))

### Removed

- Stopped setting the `LANG` env var. ([#306](#306))
- Stopped setting the `PYTHONHOME` env var. ([#309](#309))
heroku-linguist bot added a commit to heroku/cnb-builder-images that referenced this pull request Dec 18, 2024
## heroku/python

### Changed

- The build now fails early if known problematic Python and pip-related env vars have been set by the user or earlier buildpacks. ([#308](heroku/buildpacks-python#308))
- The `PIP_PYTHON` env var is now only set at build time. ([#307](heroku/buildpacks-python#307))

### Removed

- Stopped setting the `LANG` env var. ([#306](heroku/buildpacks-python#306))
- Stopped setting the `PYTHONHOME` env var. ([#309](heroku/buildpacks-python#309))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants