mirror of https://github.com/astral-sh/uv
## Summary When executing `.venv\Scripts\activate` in `cmd`, the script uses the local codepage for execution. This causes issues when the file path contains non-ASCII characters, resulting in corrupted environment variables such as `VIRTUAL_ENV`. See #11828. Code used to fix the issue was adapted from https://github.com/python/cpython/blob/3.13/Lib/venv/scripts/nt/activate.bat#L3-L9. ## Test Plan Before:  After:  (`chcp` command cleared the history lol) |
||
|---|---|---|
| .. | ||
| activator | ||
| _virtualenv.py | ||
| lib.rs | ||
| virtualenv.rs | ||