From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12082: 24.1.50; Wrong character showed by "C-h c" Date: Mon, 30 Jul 2012 18:58:44 +0300 Message-ID: <83k3xlfdfv.fsf@gnu.org> References: <83d33eh10q.fsf@gnu.org> <834nophqbw.fsf@gnu.org> <83obmxfhfs.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1343663941 7330 80.91.229.3 (30 Jul 2012 15:59:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2012 15:59:01 +0000 (UTC) Cc: lekktu@gmail.com, 12082@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 17:59:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SvsMv-00024G-CD for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2012 17:58:53 +0200 Original-Received: from localhost ([::1]:45408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvsMu-0006UL-JT for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2012 11:58:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvsMr-0006UE-Pd for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 11:58:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvsMq-0006cE-DM for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 11:58:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvsMq-0006c8-A1 for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 11:58:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SvsTq-0004JX-2A for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 12:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jul 2012 16:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12082 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12082-submit@debbugs.gnu.org id=B12082.134366435416570 (code B ref 12082); Mon, 30 Jul 2012 16:06:02 +0000 Original-Received: (at 12082) by debbugs.gnu.org; 30 Jul 2012 16:05:54 +0000 Original-Received: from localhost ([127.0.0.1]:51120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvsTi-0004JD-8N for submit@debbugs.gnu.org; Mon, 30 Jul 2012 12:05:54 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:45217) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvsTf-0004J1-Gv for 12082@debbugs.gnu.org; Mon, 30 Jul 2012 12:05:53 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M7Z00C00DLLXB00@a-mtaout22.012.net.il> for 12082@debbugs.gnu.org; Mon, 30 Jul 2012 18:58:31 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7Z00CBUDPIRR50@a-mtaout22.012.net.il>; Mon, 30 Jul 2012 18:58:31 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62640 Archived-At: > Date: Mon, 30 Jul 2012 17:05:01 +0200 > From: Dani Moncayo > Cc: Juanma Barranquero , 12082@debbugs.gnu.org >=20 > >> . switch the keyboard to English ("EN" near the system tray), = if you > >> can, and type a couple of pure ASCII characters > > > > [a] > > warning: w32fns: WM_CHAR 0x61 > > warning: w32term: 0x61 =3D> 0x61 (cp1252) > > > > [z] > > warning: w32fns: WM_CHAR 0x7a > > warning: w32term: 0x7a =3D> 0x7a (cp1252) > > > >> . switch the keyboard to Spanish and type =E7 and M-=E7 > > > > [=E7] > > warning: w32fns: WM_CHAR 0xe7 > > warning: w32term: 0xffffffe7 =3D> 0xe7 (cp1252) > > > > [M-=E7] > > warning: w32term: 0xffffff87 =3D> 0x2021 (cp1252) > > > > (yes, only one message for this character) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This means M-=E7 gets processed by some code in w32fns.c that doesn't have a DebPrint. Can you find out which one (by sticking DebPrint)? For example, these two fragments look as possible suspects: 1) =09default: =09 /* If not defined as a function key, change it to a WM_CHAR mess= age. */ =09 if (wParam > 255 || !lispy_function_keys[wParam]) =09 { =09 DWORD modifiers =3D construct_console_modifiers (); ... =09 else =09=09{ =09=09 /* Let TranslateMessage handle everything else. */ =09=09 windows_translate =3D 1; =09=09} =09 } 2) translate: if (windows_translate) =09{ =09 MSG windows_msg =3D { hwnd, msg, wParam, lParam, 0, {0,0} }; =09 windows_msg.time =3D GetMessageTime (); =09 TranslateMessage (&windows_msg); =09 goto dflt; =09} Can you stick a DebPrint into each block and see which one handles M-=E7?