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#10299: Emacs doesn't handle Unicode characters in keyboard layout on MS Windows Date: Thu, 15 Dec 2011 12:52:14 +0200 Message-ID: <838vme2jkx.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1323946428 24065 80.91.229.12 (15 Dec 2011 10:53:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2011 10:53:48 +0000 (UTC) Cc: 10299@debbugs.gnu.org To: Joakim =?UTF-8?Q?H=C3=A5rsman?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 11:53:44 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb8wZ-0003yy-LO for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2011 11:53:43 +0100 Original-Received: from localhost ([::1]:33814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb8wZ-0000C4-AV for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2011 05:53:43 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb8wU-0000Bo-CQ for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 05:53:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rb8wQ-0003Q6-1P for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 05:53:38 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb8wP-0003Q2-RJ for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 05:53:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Rb8xq-0003jz-8e for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 05:55:02 -0500 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: Thu, 15 Dec 2011 10:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10299-submit@debbugs.gnu.org id=B10299.132394646714337 (code B ref 10299); Thu, 15 Dec 2011 10:55:02 +0000 Original-Received: (at 10299) by debbugs.gnu.org; 15 Dec 2011 10:54:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb8xH-0003jC-5w for submit@debbugs.gnu.org; Thu, 15 Dec 2011 05:54:27 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb8xF-0003j4-As for 10299@debbugs.gnu.org; Thu, 15 Dec 2011 05:54:26 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LW800F00RGP7600@a-mtaout21.012.net.il> for 10299@debbugs.gnu.org; Thu, 15 Dec 2011 12:52:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.18.12]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LW800ECYRIZHMD0@a-mtaout21.012.net.il>; Thu, 15 Dec 2011 12:52:12 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 15 Dec 2011 05:55:02 -0500 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:54980 Archived-At: > Date: Thu, 15 Dec 2011 08:53:15 +0100 > From: Joakim H=E5rsman > Cc: 10299@debbugs.gnu.org, handa@m17n.org, jasonr@gnu.org >=20 > I really don't know my way around the Emacs source, but a quick loo= k > at w32_kbd_patch_key in w32inevt.c seems to indicate that Emacs rea= lly > is decoding the Unicode character event correctly, both > uChar.UnicodeChar and uChar.AsciiChar seem to be set correctly. > [...] > However, this bit from w32_wnd_proc in w32fns.c looks suspicious to= me: > [...] > It looks like it's re-posting the event with just the Ascii key cod= e, > clobbering the Unicode info that's originally in wParam. I'd begin by establishing what kind of message Emacs gets when you type a key created by MKLC. It could be WM_KEYDOWN, but it could als= o be something else, like WM_UNICHAR. Can you find that out, either with a debugger or with some other tool= ? If you can, please show the parameters of the message sent to Emacs. Then we can continue tracing the code execution from there. Note that Emacs has a separate thread that reads the Windows events, and that thread then passes the events to the main thread, where the event undergoes several levels of processing. It's a complicated issue, so we had better established from the get-go what kind of inpu= t are we processing.