summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-11-27 11:38:12 (GMT)
committerGitHub <noreply@github.com>2024-11-27 11:38:12 (GMT)
commit3cf83d91a5baf3600dd60f7aaaf4fb6d73c4b8a9 (patch)
tree7d2b8554ca725e86f800a263c7a39fcdd0f1380f /Lib/http
parent83926d3b4c7847394b5e2531e9566d7fc9fbea0f (diff)
downloadcpython-3cf83d91a5baf3600dd60f7aaaf4fb6d73c4b8a9.zip
cpython-3cf83d91a5baf3600dd60f7aaaf4fb6d73c4b8a9.tar.gz
cpython-3cf83d91a5baf3600dd60f7aaaf4fb6d73c4b8a9.tar.bz2
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.
Diffstat (limited to 'Lib/http')
0 files changed, 0 insertions, 0 deletions