Merged revisions 76593 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r76593 | amaury.forgeotdarc | 2009-11-30 01:08:56 +0100 (lun., 30 nov. 2009) | 5 lines

  #6077: on Windows, fix truncation of a tempfile.TemporaryFile opened in "wt+" mode:
  files opened with os.open() stop on the first \x1a (Ctrl-Z) unless os.O_BINARY is used.

  Will backport to 3.1
........
diff --git a/Misc/NEWS b/Misc/NEWS
index 375004f..6d7c4e3 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@
 Core and Builtins
 -----------------
 
+- Issue #6077: On Windows, files opened with tempfile.TemporaryFile in "wt+"
+  mode would appear truncated on the first '0x1a' byte (aka. Ctrl+Z).
+
 - Issue #7085: Fix crash when importing some extensions in a thread
   on MacOSX 10.6.