UnicodeDecodeError in pdm 2.9.1 due to non-ASCII characters in .venv/pyvenv.cfg
#2227
Closed
1 task done
Labels
🐛 bug
Something isn't working
Note: This issue has been machine-translated. I apologize for any errors or lack of clarity.
When the directory name contains non-ASCII characters, the prompt field in .venv/pyvenv.cfg also contains non-ASCII values. This leads to a UnicodeDecodeError in pdm version 2.9.1.
It seems that specifying the encoding as utf-8 in line 58 of src/pdm/models/venv.py while using open() might solve the issue.
Steps to reproduce
pip uninstall pdm
pip install pdm
pdm init
pdm add numpy
(on non ascii directory)
Environment Information
The text was updated successfully, but these errors were encountered: