EncodingWarning
s in configuration.py
and utils/subprocess.py
#12386
Labels
resolution: duplicate
Duplicate of an existing issue/PR
type: bug
A confirmed bug or unintended behavior
Description
Some projects I'm working on (e.g. black, pytest) have started setting
PYTHONWARNDEFAULTENCODING=1
in their tox configurations (see PEP 597 – Add optional EncodingWarning). It affects pip as well, and pip is not clean from these warnings:The "Consider locale.getencoding() instead" warning is explained by PEP 686 – Make UTF-8 mode default.
Expected behavior
No warnings under
PYTHONWARNDEFAULTENCODING=1
.pip version
23.2.1
Python version
3.11
OS
Linux
How to Reproduce
Running
PYTHONWARNDEFAULTENCODING=1 pip
is sufficient for the first two warnings.The subprocess warning I get when doing
PYTHONWARNDEFAULTENCODING=1 pip install -e .
in black repo (trying to mimic what tox does).Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: