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
bpo-32409 Fix regression in activate.bat on international Windows (GH-10295)
Handle Unicode contents on localized Windows systems when activating a
virtualenv. activate.bat currently breaks on German Windows systems as chcp does
not return a plain number as on English systems, but appends a dot at the end
(for example "Aktive Codepage: 850." instead of "Active Codepage: 850). The
dependency to chcp.com is removed and ctypes is used to get, set and restore the
console ouput codepage. The codepage for console input is not changed.
We can't use __VENV_PYTHON__ to find python.exe since it's UTF-8. CMD decodes
the script using the console output codepage.
0 commit comments