From unknown Mon Sep 08 08:01:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4567 <4567@debbugs.gnu.org> To: bug#4567 <4567@debbugs.gnu.org> Subject: Status: console mode assertion failure on keyboard.c (c == event->code) Reply-To: bug#4567 <4567@debbugs.gnu.org> Date: Mon, 08 Sep 2025 15:01:32 +0000 retitle 4567 console mode assertion failure on keyboard.c (c =3D=3D event->= code) reassign 4567 emacs,w32 submitter 4567 Juanma Barranquero severity 4567 serious thanks From lekktu@gmail.com Sun Sep 27 16:30:56 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 27 Sep 2009 23:30:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.1 required=4.0 tests=AWL,FOURLA,HAS_PACKAGE, IMPRONONCABLE_2 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-fx0-f207.google.com (mail-fx0-f207.google.com [209.85.220.207]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8RNUsU2030252 for ; Sun, 27 Sep 2009 16:30:56 -0700 Received: by fxm3 with SMTP id 3so3286456fxm.44 for ; Sun, 27 Sep 2009 16:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=hyBCnzWCzx3fQgG59QAji8t6etGWxjJVGl9Nf7uUSVI=; b=pKl9zn6dhSx6Qvv4XzSuZNudRfh1ilV/2K7/F2BhiWnRfX/SpLvHTLhVoevF0eeisf C9AWCKff/op0AgFVgJCFQ2+JuwlRdHMWyeZ7lFW6C+0BDAqNPPa2flQQOmN9wnREAI75 PfCCWOLCohcGtAv8dNu1hAnLcAORYwKv3J+hU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=InWWZESzkgJbO4FNtnQw6vuDvCTKvwn9nQMTglDoj+uo22bnA64SPh0fqOCZ9wS5HV i3PP+xlWuD7y9ZAJCB02jBD6ytwdDHXQqcjpAuydRxhjo/bZ+SvknqSvolG6h8aUhHzi KmrQ4JXYy515co8h5uAJExfYSjST/H+pvnFo8= MIME-Version: 1.0 Received: by 10.239.139.97 with SMTP id s33mr219496hbs.24.1254094249027; Sun, 27 Sep 2009 16:30:49 -0700 (PDT) From: Juanma Barranquero Date: Mon, 28 Sep 2009 01:29:29 +0200 Message-ID: Subject: console mode assertion failure on keyboard.c (c == event->code) To: Emacs Bug Tracker Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Package: emacs,w32 Version: 23.1,23.1.50 This happens on Windows; code page is 437 or 850. emacs -Q -nw =C3=B1 ;; or =C3=A7, =C2=BA, etc; any non-ASCII character in th= e keyboard keyboard.c:5548: Emacs fatal error: assertion failed: c =3D=3D event->code Breakpoint 1, w32_abort () at w32fns.c:7344 7344 button =3D MessageBox (NULL, (gdb) bt #0 w32_abort () at w32fns.c:7344 #1 0x0104d032 in die (msg=3D0x14f5970 "assertion failed: c =3D=3D event->code", file=3D0x14ed02c "keyboard.c", line=3D5548) at alloc.c:6254 #2 0x01012fac in make_lispy_event (event=3D0x160e1d0) at keyboard.c:5548 #3 0x010112e5 in kbd_buffer_get_event (kbp=3D0x82f69c, used_mouse_menu=3D0x82fa04, end_time=3D0x0) at keyboard.c:4312 #4 0x0100d511 in read_char (commandflag=3D1, nmaps=3D2, maps=3D0x82f820, prev_event=3D48273409, used_mouse_menu=3D0x82fa04, end_time=3D0x0) at keyboard.c:3059 #5 0x0101eb2a in read_key_sequence (keybuf=3D0x82fc4c, bufsize=3D30, prompt=3D48273409, dont_downcase_last=3D0, can_return_switch_frame=3D1, fix_current_buffer=3D1) at keyboard.c:9461 #6 0x01007a9a in command_loop_1 () at keyboard.c:1640 #7 0x01039cba in internal_condition_case (bfun=3D0x1007276 , handlers=3D48337089, hfun=3D0x10069ec ) at eval.c:1513 #8 0x01006e85 in command_loop_2 () at keyboard.c:1357 #9 0x01039713 in internal_catch (tag=3D48333209, func=3D0x1006e65 , arg=3D48273409) at eval.c:1249 #10 0x01006e3c in command_loop () at keyboard.c:1336 #11 0x01006143 in recursive_edit_1 () at keyboard.c:951 #12 0x01006618 in Frecursive_edit () at keyboard.c:1013 #13 0x01002a8d in main (argc=3D3, argv=3D0xa92808) at emacs.c:1827 (gdb) frame 2 #2 0x01012fac in make_lispy_event (event=3D0x160e1d0) at keyboard.c:5548 5548 eassert (c =3D=3D event->code); (gdb) p c $1 =3D 164 (gdb) p event->code $2 =3D -92 (gdb) From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 25 18:25:27 2010 Received: (at control) by debbugs.gnu.org; 25 Jan 2010 23:25:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZYJD-0000Et-1U for submit@debbugs.gnu.org; Mon, 25 Jan 2010 18:25:27 -0500 Received: from pantheon-po34.its.yale.edu ([130.132.50.80]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZYJB-0000Eo-TE for control@debbugs.gnu.org; Mon, 25 Jan 2010 18:25:26 -0500 Received: from furry (dhcp128036014123.central.yale.edu [128.36.14.123]) (authenticated bits=0) by pantheon-po34.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0PNPL2d020246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 25 Jan 2010 18:25:22 -0500 Received: by furry (Postfix, from userid 1000) id 1E42AC05D; Mon, 25 Jan 2010 16:25:22 -0700 (MST) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 4567 serious Date: Mon, 25 Jan 2010 18:25:22 -0500 Message-ID: <873a1tvkbh.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) severity 4567 serious thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 18:26:27 2010 Received: (at 4567-done) by debbugs.gnu.org; 27 Jan 2010 23:26:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NaHHF-0002If-Or for submit@debbugs.gnu.org; Wed, 27 Jan 2010 18:26:26 -0500 Received: from mail-gx0-f214.google.com ([209.85.217.214]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NaHHD-0002IY-SK for 4567-done@debbugs.gnu.org; Wed, 27 Jan 2010 18:26:24 -0500 Received: by gxk6 with SMTP id 6so96612gxk.5 for <4567-done@debbugs.gnu.org>; Wed, 27 Jan 2010 15:26:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to :subject:date:message-id:user-agent:mime-version:content-type; bh=Oou9ueAq4CeJiSv95PTKRvDdqlz9tNsHlpohNiCRvhY=; b=uFlAoNDtjSiS1TP8ZeDhN7Ei82r7+eIskubtOWxgOKce8Cn29kc9BkGHeJIIyDrzOC oAQdBvVfcyIzGZ9pqhaAL/YqUSoo9Z4vD9lu4ompAglyNgWUooyp67F7gZ2CAsN9rtZW 7kKDpyn4KBLiUX+kPpYkH6kPSgD+XY+s3dZSc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:user-agent:mime-version :content-type; b=kMalyg2XZLZRw8d6AQLWVdlfVS+ZdiMzZH69oiNps1K9He2ZKY4VIcTQqKCF0UY6Tu 9JbxpQfLRnPVq8SDcdo/Z4sR74vbf+3Zzpj1W7A8Q27I/6sCzNSgVYm4gwGkLBuaQgYO tM2BajpMIE3jdE2RylOa2h/2jYWCnw+W26EiA= Received: by 10.90.171.16 with SMTP id t16mr158859age.109.1264634779691; Wed, 27 Jan 2010 15:26:19 -0800 (PST) Received: from wanchan.jasonrumney.net ([202.87.221.133]) by mx.google.com with ESMTPS id 39sm126703yxd.63.2010.01.27.15.26.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 27 Jan 2010 15:26:18 -0800 (PST) Received: by wanchan.jasonrumney.net (Postfix, from userid 1000) id B165D1E6B; Thu, 28 Jan 2010 07:26:14 +0800 (MYT) From: Jason Rumney To: 4567-done@debbugs.gnu.org Subject: Keyboard input on w32 console fixed Date: Thu, 28 Jan 2010 07:26:14 +0800 Message-ID: <87ljfj3zah.fsf@wanchan.jasonrumney.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 4567-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > I'm the only one that sees #4567, an assertion failure on console mode > on Windows? I've fixed this by using Unicode for keyboard input and marking characters above 127 as MULTIBYTE rather than ASCII. From unknown Mon Sep 08 08:01:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 25 Feb 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator