cpython/Objects
Thomas Wouters afea529088 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....)
2007-01-23 13:42:00 +00:00
..
stringlib Fix endcase for str.rpartition() 2006-09-04 15:32:48 +00:00
abstract.c Forward-port of r52136,52138: a review of overflow-detecting code. 2006-10-04 12:17:45 +00:00
boolobject.c Remove unnecessary casts in type object initializers. 2006-03-30 11:57:00 +00:00
bufferobject.c memcmp() can return values other than -1, 0, and +1 but tp_compare 2006-08-08 17:37:00 +00:00
cellobject.c Another problem reported by Coverity. Backport candidate. 2006-06-30 07:32:46 +00:00
classobject.c Correctly forward exception in instance_contains(). 2006-11-08 06:46:37 +00:00
cobject.c Remove unnecessary casts in type object initializers. 2006-03-30 11:57:00 +00:00
codeobject.c Fix uninitialized memory read reported by Valgrind when running doctest. 2006-07-12 05:27:46 +00:00
complexobject.c Use sizeof(buffer) instead of duplicating the constants to ensure they won't 2006-07-16 02:22:30 +00:00
descrobject.c Change fix for segfaulting property(), add a NEWS entry and a test. 2006-08-04 18:03:37 +00:00
dictnotes.txt Typo fix 2006-12-22 00:50:56 +00:00
dictobject.c Fix refleak 2006-10-29 23:39:03 +00:00
enumobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
exceptions.c WindowsError.str should display the windows error code, 2006-10-27 18:31:36 +00:00
fileobject.c SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize 2007-01-23 13:42:00 +00:00
floatobject.c Reverting the patch that tried to fix the issue whereby x**2 raises 2006-08-23 22:17:59 +00:00
frameobject.c Move the initialization of some pointers earlier. The problem is 2006-07-21 05:31:02 +00:00
funcobject.c Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed 2006-08-12 02:12:30 +00:00
genobject.c Make use of METH_O and METH_NOARGS where possible. 2006-05-29 21:04:52 +00:00
intobject.c Minor change in int() docstring for proper spacing. 2007-01-10 16:15:48 +00:00
iterobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
listobject.c Patch [ 1586791 ] better error msgs for some TypeErrors 2006-11-19 08:48:30 +00:00
listsort.txt typo fix 2006-08-01 16:24:30 +00:00
longobject.c Forward-port of r52136,52138: a review of overflow-detecting code. 2006-10-04 12:17:45 +00:00
methodobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
moduleobject.c Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 2006-04-15 21:47:09 +00:00
object.c Slightly revised version of patch #1538956: 2006-08-14 10:55:19 +00:00
obmalloc.c Don't inline Py_ADDRESS_IN_RANGE with gcc 4+ either. 2006-10-28 21:21:00 +00:00
rangeobject.c Remove "static forward" declaration. Move constructors 2006-04-11 09:04:12 +00:00
setobject.c SF #1486663 -- Allow keyword args in subclasses of set() and frozenset(). 2007-01-11 18:22:55 +00:00
sliceobject.c Patch #1538606, Patch to fix __index__() clipping. 2006-08-12 17:03:09 +00:00
stringobject.c Patch [ 1586791 ] better error msgs for some TypeErrors 2006-11-19 08:48:30 +00:00
structseq.c Klocwork made another run and found a bunch more problems. 2006-08-12 01:43:40 +00:00
tupleobject.c Patch [ 1586791 ] better error msgs for some TypeErrors 2006-11-19 08:48:30 +00:00
typeobject.c Fix wording in comment 2006-10-09 18:05:19 +00:00
unicodectype.c Patch 1494554: Update numeric properties to Unicode 4.1. 2006-05-27 08:36:52 +00:00
unicodeobject.c Forward-port of r52136,52138: a review of overflow-detecting code. 2006-10-04 12:17:45 +00:00
unicodetype_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
weakrefobject.c _PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long. 2006-08-02 06:14:22 +00:00