bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321) · python/cpython@6955d44 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 6955d44
authored and
committed
File tree
2 files changed
lines changed
2 files changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
1 | 1 | @echo off |
2 | 2 | |
3 | 3 | rem This file is UTF-8 encoded, so we need to update the current code page while executing it |
4 | -for /f "tokens=2 delims=:" %%a in ('"%SystemRoot%\System32\chcp.com"') do ( | |
4 | +for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do ( | |
5 | 5 | set "_OLD_CODEPAGE=%%a" |
6 | 6 | ) |
7 | 7 | if defined _OLD_CODEPAGE ( |
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1 | +Fixed activate.bat to correctly update codepage when chcp.com returns dots in output. | |
2 | +Patch by Lorenz Mende. |