diff options
author | Lorenz Mende <Lorenz.mende@gmail.com> | 2019-04-10 17:19:16 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-04-10 17:19:16 (GMT) |
commit | 6955d44b41058e3bcc59ff41860bd4cc8948c441 (patch) | |
tree | d0b156faaf86620a2a95dedbeda5478a2ef54927 /Lib | |
parent | 2fb2bc81c3f40d73945c6102569495140e1182c7 (diff) | |
download | cpython-6955d44b41058e3bcc59ff41860bd4cc8948c441.zip cpython-6955d44b41058e3bcc59ff41860bd4cc8948c441.tar.gz cpython-6955d44b41058e3bcc59ff41860bd4cc8948c441.tar.bz2 |
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
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/venv/scripts/nt/activate.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/venv/scripts/nt/activate.bat b/Lib/venv/scripts/nt/activate.bat index 126049f..da831bb 100644 --- a/Lib/venv/scripts/nt/activate.bat +++ b/Lib/venv/scripts/nt/activate.bat @@ -1,7 +1,7 @@ @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 ( |