Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 881e273c795f2f5154b8afebfa299f0e830f3712 authored by Miss Islington (bot) on 07 November 2018, 19:26:15 UTC, committed by Vinay Sajip on 07 November 2018, 19:26:15 UTC
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. (cherry picked from commit c64583b6d3e8516a8cd2b5f84fc1e300bfac2206) Co-authored-by: samstagern <30337691+samstagern@users.noreply.github.com>
1 parent e40e205
Tip revision: 881e273c795f2f5154b8afebfa299f0e830f3712 authored by Miss Islington (bot) on 07 November 2018, 19:26:15 UTC
bpo-32409: Fix regression in activate.bat on international Windows (GH-10295) (GH-10377)
bpo-32409: Fix regression in activate.bat on international Windows (GH-10295) (GH-10377)
Tip revision: 881e273
File | Mode | Size |
---|---|---|
.azure-pipelines | ||
.github | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Programs | ||
Python | ||
Tools | ||
m4 | ||
.gitattributes | -rw-r--r-- | 1.5 KB |
.gitignore | -rw-r--r-- | 1.5 KB |
.travis.yml | -rw-r--r-- | 6.0 KB |
CODE_OF_CONDUCT.rst | -rw-r--r-- | 631 bytes |
LICENSE | -rw-r--r-- | 12.5 KB |
Makefile.pre.in | -rw-r--r-- | 61.1 KB |
README.rst | -rw-r--r-- | 9.9 KB |
aclocal.m4 | -rw-r--r-- | 10.7 KB |
config.guess | -rwxr-xr-x | 43.1 KB |
config.sub | -rwxr-xr-x | 35.4 KB |
configure | -rwxr-xr-x | 486.8 KB |
configure.ac | -rw-r--r-- | 162.3 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 42.1 KB |
setup.py | -rw-r--r-- | 99.5 KB |
Computing file changes ...