From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: assertion failed: c == event->code Date: Wed, 12 Dec 2007 23:41:05 +0000 Message-ID: <47607191.3000001@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197502896 30116 80.91.229.12 (12 Dec 2007 23:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2007 23:41:36 +0000 (UTC) Cc: Juanma Barranquero , Emacs-Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 13 00:41:46 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J2bCu-0007HW-VH for ged-emacs-devel@m.gmane.org; Thu, 13 Dec 2007 00:41:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2bCd-0000xr-0K for ged-emacs-devel@m.gmane.org; Wed, 12 Dec 2007 18:41:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2bCZ-0000xJ-PG for emacs-devel@gnu.org; Wed, 12 Dec 2007 18:41:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2bCY-0000wy-Bk for emacs-devel@gnu.org; Wed, 12 Dec 2007 18:41:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2bCY-0000wv-9H for emacs-devel@gnu.org; Wed, 12 Dec 2007 18:41:18 -0500 Original-Received: from mk-outboundfilter-3-a-1.mail.uk.tiscali.com ([212.74.114.7]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J2bCY-00013t-6h for emacs-devel@gnu.org; Wed, 12 Dec 2007 18:41:18 -0500 Original-X-Trace: 440094/mk-outboundfilter-1.mail.uk.tiscali.com/F2S/$ACCEPTED/Freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAOT/X0dTQxds/2dsb2JhbAAI Original-Received: from i-83-67-23-108.freedom2surf.net (HELO [192.168.249.28]) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Dec 2007 23:41:16 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85118 Archived-At: 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?