[3/4 resend] riched20/tests: Add multibyte character tests for selection.

Huw Davies huw at codeweavers.com
Mon Dec 21 03:18:08 CST 2015


> diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
> index 6c4195c..7c7200b 100644
> --- a/dlls/riched20/tests/editor.c
> +++ b/dlls/riched20/tests/editor.c
> @@ -4577,6 +4577,28 @@ static void test_EM_EXSETSEL(void)

> +        SendMessageA(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)"abcdef\x8e\xf0ghijk");
> +        /*                                                 012345     6  78901 */
> +        /*                                                                 10  */

I find this second comment line confusing.  I assume you're trying to
show that 'j' is at index 10.  Either shift the '1' one place to the
right so it's underneath the '0' and lose the '0' in this line, or
better still just remove the second comment line completely (most
people can figure out that zero after nine means ten).

This obviously applies to similar lines in this patch and the next.

Huw.



More information about the wine-devel mailing list