Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 1e42ab6e434044fdfcdc99b5b631ed972825a92c authored by Thomas Wouters on 23 January 2007, 15:09:19 UTC, committed by Thomas Wouters on 23 January 2007, 15:09:19 UTC
SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize When running the interpreter in an environment that would cause it to set stdout/stderr/stdin's encoding, having a sitecustomize that would replace them with something other than PyFile objects would crash the interpreter. Fix it by simply ignoring the encoding-setting for non-files. This could do with a test, but I can think of no maintainable and portable way to test this bug, short of adding a sitecustomize.py to the buildsystem and have it always run with it (hmmm....)
1 parent 741e0bb
Tip revision: 1e42ab6e434044fdfcdc99b5b631ed972825a92c authored by Thomas Wouters on 23 January 2007, 15:09:19 UTC
Backport trunk revision 53527:
Backport trunk revision 53527:
Tip revision: 1e42ab6
File | Mode | Size |
---|---|---|
VC6 | ||
bdist_wininst | ||
example_nt | ||
os2emx | ||
os2vacpp | ||
WinMain.c | -rw-r--r-- | 447 bytes |
_subprocess.c | -rw-r--r-- | 13.2 KB |
_winreg.c | -rw-r--r-- | 42.8 KB |
config.c | -rw-r--r-- | 4.1 KB |
dl_nt.c | -rw-r--r-- | 908 bytes |
dllbase_nt.txt | -rw-r--r-- | 3.5 KB |
empty.c | -rw-r--r-- | 137 bytes |
frozen_dllmain.c | -rw-r--r-- | 3.6 KB |
getpathp.c | -rw-r--r-- | 18.0 KB |
icons.mak | -rw-r--r-- | 213 bytes |
icons.rc | -rw-r--r-- | 59 bytes |
import_nt.c | -rw-r--r-- | 2.4 KB |
make_versioninfo.c | -rw-r--r-- | 1.0 KB |
msvcrtmodule.c | -rwxr-xr-x | 5.0 KB |
py.ico | -rw-r--r-- | 766 bytes |
pyc.ico | -rw-r--r-- | 766 bytes |
pycon.ico | -rw-r--r-- | 766 bytes |
pyconfig.h | -rw-r--r-- | 15.8 KB |
python.mk | -rw-r--r-- | 234 bytes |
python_exe.rc | -rw-r--r-- | 49 bytes |
python_nt.rc | -rw-r--r-- | 1.8 KB |
readme.txt | -rw-r--r-- | 4.2 KB |
testpy.py | -rw-r--r-- | 890 bytes |
tix.diff | -rw-r--r-- | 3.2 KB |
w9xpopen.c | -rw-r--r-- | 3.6 KB |
winsound.c | -rw-r--r-- | 7.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...