[New-bugs-announce] [issue35558] venv: running activate.bat gives ' parameter format not correct - 65001'

Nils Lindemann report at bugs.python.org
Fri Dec 21 22:39:44 EST 2018


New submission from Nils Lindemann <nilsherolindemann at googlemail.com>:

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

----------
messages: 332320
nosy: Nils-Hero
priority: normal
severity: normal
status: open
title: venv: running activate.bat gives ' parameter format not correct - 65001'
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35558>
_______________________________________


More information about the New-bugs-announce mailing list