Skip to content

venv activate.bat reset codepage fails on windows 10 #78325

Closed

Description

@LorenzMende
BPO 34144
Nosy @zooba, @miss-islington, @LorenzMende
PRs
  • bpo-34144: Fix of venv acvtivate.bat for win 10 #8321
  • [3.7] bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321) #13465
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-04-12.11:03:29.443>
    created_at = <Date 2018-07-18.08:18:42.692>
    labels = ['3.8', 'type-bug', 'library']
    title = 'venv activate.bat reset codepage fails on windows 10'
    updated_at = <Date 2019-05-21.15:41:48.006>
    user = 'https://github.com/LorenzMende'

    bugs.python.org fields:

    activity = <Date 2019-05-21.15:41:48.006>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-12.11:03:29.443>
    closer = 'cheryl.sabella'
    components = ['Library (Lib)']
    creation = <Date 2018-07-18.08:18:42.692>
    creator = 'LorenzMende'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34144
    keywords = ['patch']
    message_count = 3.0
    messages = ['321868', '339877', '343068']
    nosy_count = 4.0
    nosy_names = ['steve.dower', 'miss-islington', 'LorenzMende', 'Felix Vollmer']
    pr_nums = ['8321', '13465']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34144'
    versions = ['Python 3.8']

    Activity

    1. LorenzMende commented on Jul 18, 2018

      LorenzMendemannequin
      MannequinAuthor

      environment: Windows 10 Pro German/ 1803
      cpython @master

      When running the venv activate.bat the script fails to reset the codepage to the stored.

      # Parameterformat falsch - 65001.

      It seems that version 1803 brought a small change to the output of chcp.com - a dot is appended at the output

      The issue can be solved by modifying the codepage grep of activate.bat:
      for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (...

      A pull will be requested.

    2. added
      3.8 (EOL)
      stdlib
      type-bug
      on Jul 18, 2018
    3. miss-islington commented on Apr 10, 2019

      @miss-islington
      Contributor

      New changeset 6955d44 by Miss Islington (bot) (Lorenz Mende) in branch 'master':
      bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321)
      6955d44

    4. miss-islington commented on May 21, 2019

      @miss-islington
      Contributor

      New changeset 3c9c2dc by Miss Islington (bot) in branch '3.7':
      bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321)
      3c9c2dc

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)stdlibtype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions