On Thu, 21 Aug 2025, Kirill Makurin wrote:
I filed an issue[1].
[1]
https://developercommunity.visualstudio.com/t/mbrlen-and-mbrtowc-may-return-incorrect/10954455
Nice, thanks!
From reading the issue, I noticed one sentence which may have a typo:
The third call to mbrlen completes the conversion using conversion state
from state2 and first byte from str
This probably should be "second byte from str", as you're passing "str +
1" to mbrlen there?
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public