Commit 8ae8f64
committed
bpo-42044: Write all bytes to the console in unbuffered mode on Windows
Note: a fix for issue11395 started to write bytes capped at 32k and mandated
the caller to handle partial writes, but when the text io flush was called,
it only does only a single call in unbuffered mode. This made it so that the
bytes unwritten were actually lost (and not printed) in the process.
The reason for that was historical to support older versions of Windows. As
of Windows 10, this is no longer needed and thus given issue42044, the number
of bytes written to the console is no longer capped.1 parent c956734 commit 8ae8f64
File tree
2 files changed
+7
-10
lines changed- Misc/NEWS.d/next/Windows
- Modules/_io
2 files changed
+7
-10
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | 981 | | |
992 | 982 | | |
993 | 983 | | |
| |||
998 | 988 | | |
999 | 989 | | |
1000 | 990 | | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
1001 | 996 | | |
1002 | 997 | | |
1003 | 998 | | |
| |||
0 commit comments