mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Since MultiByteToWideChar()/WideCharToMultiByte() is not reversible if the data contains invalid UTF-8 sequences, use binary search to calculate the number of written bytes from the number of written characters. Also fix writing incomplete UTF-8 sequences. Also fix handling of memory allocation failures. |
||
|---|---|---|
| .. | ||
| clinic | ||
| _iomodule.c | ||
| _iomodule.h | ||
| bufferedio.c | ||
| bytesio.c | ||
| fileio.c | ||
| iobase.c | ||
| stringio.c | ||
| textio.c | ||
| winconsoleio.c | ||