On Fri Nov 4 12:09:20 2022 +0000, Nikolay Sivov wrote:
You can only pass surrogates there as a pair of consecutive characters. What do you mean by 0xab example? I don't get it. Regarding escaping, I mean you're using `%X;` char entity just in this one method, but what happens if you do WriteChars(0x100, 1)? Shouldn't it be using same approach there? Okay - I mostly understood everything now with the exception of the WriteChars example. Maybe I am just missing something but is WriteChars(0x100, 1) expected to compile? Do you by any chance mean WriteChars(L"\u0100", 1)? The prototype of this function being
``` HRESULT WriteChars (const WCHAR * characters, UINT count); ``` The API call will not compile... Is there something I am missing here? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1199#note_13260