You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cannot activate a venv environment on a Swiss German windows #79329
bpo-34144: venv activate.bat reset codepage fails on windows 10
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=Noneclosed_at=<Date2019-05-03.19:02:01.711>created_at=<Date2018-11-02.16:39:43.943>labels= ['3.7', '3.8', 'type-bug', 'library']
title='cannot activate a venv environment on a Swiss German windows'updated_at=<Date2019-05-03.19:02:01.710>user='https://github.com/samstagern'
So - are you saying that chcp prints "850." when asked for the current code page but won't accept "850." when setting the code page, requiring just "850"?
The Windows command line often has inconsistently localized strings. In this case it's from the ulib.dll utility library. For German, message 0x7692 in "de-DE\ulib.dll.mui" is "Aktive Codepage: %1.\r\n", which has a period after the %1 insert. In the English UI it's "Active code page: %1\r\n", with no period. I commented on the PR that we could work around this by adding "." to the list of token delimiters (delims).
Activity
samstagern commentedon Nov 2, 2018
There is a small bug in the activate.bat script causing problems on internationalized Windows systems.
C:\repo\gui>python -m venv venv
C:\repo\gui>call venv\Scripts\activate.bat
Parameterformat falsch - 850.
This translates to "Wrong parameter - 850."
For the user it is not obvious what went wrong.
The virtual environment is setup and will work in most cases.
Link to https://bugs.python.org/issue32409.
vsajip commentedon Nov 2, 2018
So - are you saying that chcp prints "850." when asked for the current code page but won't accept "850." when setting the code page, requiring just "850"?
eryksun commentedon Nov 2, 2018
The Windows command line often has inconsistently localized strings. In this case it's from the ulib.dll utility library. For German, message 0x7692 in "de-DE\ulib.dll.mui" is "Aktive Codepage: %1.\r\n", which has a period after the %1 insert. In the English UI it's "Active code page: %1\r\n", with no period. I commented on the PR that we could work around this by adding "." to the list of token delimiters (delims).
vsajip commentedon Nov 7, 2018
Fixed, see bpo-32409 for commit information.
moltob commentedon Dec 20, 2018
Dear developers on the nosy list: Would it be possible that someone does a quick review of my related fix in #10696?
It is extremely simple and has minimal side effects, but would relieve us from getting this annoying error in the future.
I know this is a minor thing but each time I start a venv in Germany, I am reminded of this... :-)
Thanks a lot.