Kaydet (Commit) 6955d44b authored tarafından Lorenz Mende's avatar Lorenz Mende Kaydeden (comit) Miss Islington (bot)

bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321)



The script needs to be updated to support win 10/ 1803 chcp.com command (output has trailing dot)





https://bugs.python.org/issue34144
üst 2fb2bc81
@echo off
rem This file is UTF-8 encoded, so we need to update the current code page while executing it
for /f "tokens=2 delims=:" %%a in ('"%SystemRoot%\System32\chcp.com"') do (
for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (
set "_OLD_CODEPAGE=%%a"
)
if defined _OLD_CODEPAGE (
......
Fixed activate.bat to correctly update codepage when chcp.com returns dots in output.
Patch by Lorenz Mende.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment