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

Fix 2 places where encoding is not specified #10593

Merged
merged 3 commits into from
Oct 18, 2021

Conversation

gousaiyang
Copy link
Contributor

  • In pip/_internal/configuration.py, explicitly use locale encoding to parse configuration file
  • In pip/_internal/build_env.py, use UTF-8 when generating sitecustomize.py

Fixes #10590.

- In `pip/_internal/configuration.py`, explicitly use locale encoding to parse configuration file
- In `pip/_internal/build_env.py`, use UTF-8 when generating `sitecustomize.py`

Fixes pypa#10590.
@DiddiLeija
Copy link
Member

In general, this looks fine for me. Just add a news entry (see the reference: https://pip.pypa.io/en/stable/development/contributing/#news-entries). I think this should be 10593.trivial.rst or 10593.bugfix.rst (I personally would prefer to use .trivial here).

@uranusjr uranusjr merged commit f3a5dcc into pypa:main Oct 18, 2021
@gousaiyang gousaiyang deleted the fix-missing-encoding-2 branch October 18, 2021 16:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EncodingWarning in configuration.py
4 participants