cpython/Modules/_io
Serhiy Storchaka 3cf83d91a5
gh-124008: Fix calculation of the number of written bytes for the Windows console (GH-124059)
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.
2024-11-27 13:38:12 +02:00
..
clinic gh-122943: Add the varpos parameter in _PyArg_UnpackKeywords (GH-126564) 2024-11-08 14:23:50 +02:00
_iomodule.c gh-90102: Remove isatty call during regular open (#124922) 2024-10-08 08:50:42 +02:00
_iomodule.h
bufferedio.c gh-121645: Add PyBytes_Join() function (#121646) 2024-08-30 12:57:33 +00:00
bytesio.c gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069) 2024-03-22 11:25:38 +00:00
fileio.c gh-120754: _io Ensure stat cache is cleared on fd change (#125166) 2024-11-01 22:50:49 +01:00
iobase.c gh-121645: Add PyBytes_Join() function (#121646) 2024-08-30 12:57:33 +00:00
stringio.c gh-127182: Fix io.StringIO.__setstate__ crash when None is the first value (#127219) 2024-11-25 20:32:02 +03:00
textio.c gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) (#125583) 2024-10-25 11:14:52 +02:00
winconsoleio.c gh-124008: Fix calculation of the number of written bytes for the Windows console (GH-124059) 2024-11-27 13:38:12 +02:00