From 61e774fcd38cde063c4804c020d77267c3e8e11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Nalepka?= <62441978+ShootGan@users.noreply.github.com> Date: Sat, 7 Sep 2024 07:01:46 +0200 Subject: [PATCH] Fix #2728: Activating venv create unwanted console output (#2748) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor --- docs/changelog/2728.bugfix.rst | 1 + src/virtualenv/activation/batch/activate.bat | 1 + 2 files changed, 2 insertions(+) create mode 100644 docs/changelog/2728.bugfix.rst diff --git a/docs/changelog/2728.bugfix.rst b/docs/changelog/2728.bugfix.rst new file mode 100644 index 000000000..1040fd4d9 --- /dev/null +++ b/docs/changelog/2728.bugfix.rst @@ -0,0 +1 @@ +no longer create `()` output in console during activation of a virtualenv by .bat file. diff --git a/src/virtualenv/activation/batch/activate.bat b/src/virtualenv/activation/batch/activate.bat index d383de073..3e34ee4db 100644 --- a/src/virtualenv/activation/batch/activate.bat +++ b/src/virtualenv/activation/batch/activate.bat @@ -1,4 +1,5 @@ @REM This file is UTF-8 encoded, so we need to update the current code page while executing it +@echo off @for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do ( @set _OLD_CODEPAGE=%%a )