This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: venv: running activate.bat gives ' parameter format not correct - 65001'
Type: behavior Stage: resolved
Components: Versions: Python 3.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: Nils-Hero, vinay.sajip
Priority: normal Keywords:

Created on 2018-12-22 03:39 by Nils-Hero, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg332320 - (view) Author: Nils Lindemann (Nils-Hero) * Date: 2018-12-22 03:39
Windows 7, Python 3.7.1:260ec2c36a

after doing

    C:\python\python -m venv C:\myvenv

and then

    C:\>myvenv\Scripts\activate.bat

it prints

    parameter format not correct - 65001

However, it activates the venv - the prompt shows

    (myvenv) C:\>

and

    C:\myvenv\Scripts;

gets prepended to PATH.

When i outcomment

    for /f "tokens=2 delims=:" %%a in ('"%SystemRoot%\System32\chcp.com"') do (
        set "_OLD_CODEPAGE=%%a"
    )

in the activate.bat then the message wont show up.

related: https://stackoverflow.com/questions/51358202/python-3-7-activate-venv-error-parameter-format-not-correct-65001-windows
msg332323 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2018-12-22 06:09
This seems related to bpo-32409.
msg332346 - (view) Author: Nils Lindemann (Nils-Hero) * Date: 2018-12-22 12:25
Yes, you are right, Vinay Sajip, it actually prints 'Parameterformat falsch - 65001.' (i translated it) and https://bugs.python.org/issue35148#msg332182 may possibly be a fix for that.

So, https://bugs.python.org/issue35148 is the Superseder i guess, and this can be set to to 'closed' and 'duplicate' but i dont know how to do this. There is no text entry in 'Superseder' ('Ersetzt durch') above.
History
Date User Action Args
2022-04-11 14:59:09adminsetgithub: 79739
2018-12-22 20:25:50Nils-Herosetstatus: closed
resolution: duplicate
stage: resolved
2018-12-22 12:25:30Nils-Herosetstatus: open -> (no value)

messages: + msg332346
2018-12-22 06:09:06vinay.sajipsetmessages: + msg332323
2018-12-22 03:52:07ned.deilysetnosy: + vinay.sajip
2018-12-22 03:39:44Nils-Herocreate