Issue #10841: set binary mode on files; the parser translates newlines
On Windows, set the binary mode on stdin, stdout, stderr and all
io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser
translates newlines (\r\n => \n).
diff --git a/Misc/NEWS b/Misc/NEWS
index 8702e71..33aac6e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -8,6 +8,10 @@
Core and Builtins
-----------------
+- Issue #10841: On Windows, set the binary mode on stdin, stdout, stderr and
+ all io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python
+ parser translates newlines (\r\n => \n).
+
- Remove buffer API from stable ABI for now, see #10181.
- Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file