From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joakim =?UTF-8?Q?H=C3=A5rsman?= 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:11:18 +0100 Message-ID: References: <838vme2jkx.fsf@gnu.org> 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 1323947513 32011 80.91.229.12 (15 Dec 2011 11:11:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2011 11:11:53 +0000 (UTC) Cc: 10299@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 12:11:47 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 1Rb9E1-0003nT-Rd for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2011 12:11:45 +0100 Original-Received: from localhost ([::1]:52003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb9E1-00031H-59 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2011 06:11:45 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb9Dt-000317-D0 for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 06:11:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rb9Dp-0006ni-4Y for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 06:11:37 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb9Do-0006ne-UB for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 06:11:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Rb9FF-000499-MS for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 06:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Joakim =?UTF-8?Q?H=C3=A5rsman?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2011 11:13:01 +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.132394757115924 (code B ref 10299); Thu, 15 Dec 2011 11:13:01 +0000 Original-Received: (at 10299) by debbugs.gnu.org; 15 Dec 2011 11:12:51 +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 1Rb9F4-00048l-Vx for submit@debbugs.gnu.org; Thu, 15 Dec 2011 06:12:51 -0500 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rb9F2-00048e-Px for 10299@debbugs.gnu.org; Thu, 15 Dec 2011 06:12:49 -0500 Original-Received: by eaad1 with SMTP id d1so1711123eaa.3 for <10299@debbugs.gnu.org>; Thu, 15 Dec 2011 03:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ldmXlosoAcrh70QOZXEkvO+wRz9IhqMSN8V59ntrBgE=; b=kpOTZINFoyw1W3OqGhk2kKuBZ0K8S7K16qxua+OkmOyn6iXoAK/LTZ6JU9iFS8CLq/ Jk37DVsZ04pV7eHaKz89cFJFkHzIzLxdAWJMjIO9/jqai6IZMOl2/KF7/IFOtEXeA83Q BT3/z0mgKlCp7CnpRDDzRbZsA/XnPC+jM16nw= Original-Received: by 10.204.133.197 with SMTP id g5mr609793bkt.43.1323947478908; Thu, 15 Dec 2011 03:11:18 -0800 (PST) Original-Received: by 10.204.58.209 with HTTP; Thu, 15 Dec 2011 03:11:18 -0800 (PST) In-Reply-To: <838vme2jkx.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 15 Dec 2011 06:13:01 -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:54981 Archived-At: Ok, I'll try to build Emacs on Windows and see if I can set a breakpoint and look at the message Emacs is getting. On 15 December 2011 11:52, Eli Zaretskii wrote: >> Date: Thu, 15 Dec 2011 08:53:15 +0100 >> From: Joakim H=E5rsman >> Cc: 10299@debbugs.gnu.org, handa@m17n.org, jasonr@gnu.org >> >> I really don't know my way around the Emacs source, but a quick look >> at w32_kbd_patch_key in w32inevt.c seems to indicate that Emacs really >> 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 code, >> 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. =A0It could be WM_KEYDOWN, but it could also > 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. =A0It's a complicated > issue, so we had better established from the get-go what kind of input > are we processing.