Files
cpython/Python
Thomas Wouters e471317a08 Backport trunk revision 53527:
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:54:30 +00:00
..
2006-04-13 13:08:58 +00:00
2006-11-04 19:32:54 +00:00
2006-11-29 22:07:38 +00:00
2006-10-28 21:38:43 +00:00
2002-06-11 06:22:31 +00:00
2007-01-05 05:28:50 +00:00
2002-08-15 14:59:02 +00:00
2002-12-30 22:08:05 +00:00
2006-07-11 16:44:25 +00:00
2007-01-23 13:54:30 +00:00
2006-10-27 06:17:21 +00:00
2007-01-23 13:54:30 +00:00
2002-06-11 06:22:31 +00:00
2005-07-09 15:26:33 +00:00