• samstagern's avatar
    bpo-32409: Fix regression in activate.bat on international Windows (GH-10295) · c64583b6
    samstagern yazdı
    Handle Unicode contents on localised Windows systems when activating a
    venv. activate.bat currently breaks on German Windows systems, as chcp.com does
    not return a plain number as on English systems, but (arbitrarily) 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 output code page. The code page for console input is not changed.
    
    We can't use __VENV_PYTHON__ to find python.exe, since it's UTF-8. cmd.exe decodes
    the script using the console output code page.
    c64583b6
Adı
Son kayıt (commit)
Son güncelleme
.azure-pipelines Loading commit data...
.github Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...