Staging
v0.8.1
https://github.com/python/cpython
Revision e471317a084512d558fd3bfd84592a6a7126cdee authored by Thomas Wouters on 23 January 2007, 13:54:30 UTC, committed by Thomas Wouters on 23 January 2007, 13:54:30 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 1e4bb44
History
Tip revision: e471317a084512d558fd3bfd84592a6a7126cdee authored by Thomas Wouters on 23 January 2007, 13:54:30 UTC
Backport trunk revision 53527:
Tip revision: e471317
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
PCbuild8
Parser
Python
RISCOS
Tools
.hgtags -rw-r--r-- 3.3 KB
LICENSE -rw-r--r-- 13.2 KB
Makefile.pre.in -rw-r--r-- 34.2 KB
README -rw-r--r-- 54.4 KB
configure -rwxr-xr-x 623.0 KB
configure.in -rw-r--r-- 94.6 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 26.4 KB
setup.py -rw-r--r-- 66.3 KB

README

back to top