Closed
Description
Feature or enhancement
Proposal:
If function _io__WindowsConsoleIO_write_impl
does not produce as expected output from WriteConsoleW, it is the process of recalculating the existing len.
At this point, function WideCharToMultiByte finds the byte length of utf-8 and function MultiByteToWideChar finds the letter length of utf-16. And is this comparison valid for comparing the results of these two?
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
Linked PRs
- gh-124008: Fix calculation of the number of written bytes for the Windows console #124059
- [3.13] gh-124008: Fix calculation of the number of written bytes for the Windows console (GH-124059) #127325
- [3.12] gh-124008: Fix calculation of the number of written bytes for the Windows console (GH-124059) #127326