emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assertion failed: c == event->code


From: Jason Rumney
Subject: Re: assertion failed: c == event->code
Date: Wed, 12 Dec 2007 23:41:05 +0000
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Stefan Monnier wrote:
> --- w32term.c.~1.276.~        2007-11-09 10:15:55.000000000 -0500
> +++ w32term.c 2007-12-12 14:43:54.000000000 -0500
> @@ -4329,7 +4329,9 @@
>             if (temp_index == sizeof temp_buffer / sizeof (short))
>               temp_index = 0;
>             temp_buffer[temp_index++] = msg.msg.wParam;
> -           inev.kind = ASCII_KEYSTROKE_EVENT;
> +           inev.kind = (msg.msg.wParam < 0xff
> +                        ? ASCII_KEYSTROKE_EVENT
> +                        : MULTIBYTE_CHAR_KEYSTROKE_EVENT);
>             inev.code = msg.msg.wParam;
>             inev.modifiers = msg.dwModifiers;
>             XSETFRAME (inev.frame_or_window, f);
>   

Is it really that simple? Doesn't the multibyte character need to be
encoded to emacs-mule first?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]