From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#10299: Emacs doesn't handle Unicode characters in keyboard layout on MS Windows Date: Mon, 19 Dec 2011 11:59:57 +0100 Message-ID: References: <8739clgapc.fsf@gnu.org> <83zket20xw.fsf@gnu.org> <83vcph0w9t.fsf@gnu.org> <83obv821wv.fsf@gnu.org> <831us31atj.fsf@gnu.org> <83pqflzr1d.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1324292487 21252 80.91.229.12 (19 Dec 2011 11:01:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2011 11:01:27 +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 Mon Dec 19 12:01:23 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 1Rcay9-0002p9-Rt for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Dec 2011 12:01:22 +0100 Original-Received: from localhost ([::1]:35410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcay9-0006DU-F3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Dec 2011 06:01:21 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcay5-000654-Q6 for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2011 06:01:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rcaxz-0008FN-Bi for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2011 06:01:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcaxz-0008FH-51 for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2011 06:01:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Rcazm-0000Un-Fs for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2011 06:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Dec 2011 11:03: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.13242925351847 (code B ref 10299); Mon, 19 Dec 2011 11:03:02 +0000 Original-Received: (at 10299) by debbugs.gnu.org; 19 Dec 2011 11:02:15 +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 1Rcaz1-0000Tj-1G for submit@debbugs.gnu.org; Mon, 19 Dec 2011 06:02:15 -0500 Original-Received: from mail-lpp01m010-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rcayw-0000TX-9G for 10299@debbugs.gnu.org; Mon, 19 Dec 2011 06:02:12 -0500 Original-Received: by laah2 with SMTP id h2so2116778laa.3 for <10299@debbugs.gnu.org>; Mon, 19 Dec 2011 03:00:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=MNtrinAG3R85+kC6F0SSJWpvjHjLw4vqOysV9t8kT8s=; b=Wt8VzdW+idJXftKWiXSLltqYI9MSL0VRfjnJGZv+riUqoBuoXOiEC/Pb1GFaGBRWV/ icil7tDC1Cp1gCSN0m5iMVjuu3fkQBOWuRcd9fqjMqQXDCiudSqwFBv9Ee4AkTz3m56b Il8u6lAfqG0rh0JMmqnH+U0JC6LWHk4dh41Eg= Original-Received: by 10.152.104.6 with SMTP id ga6mr15546963lab.45.1324292417166; Mon, 19 Dec 2011 03:00:17 -0800 (PST) Original-Received: by 10.152.27.104 with HTTP; Mon, 19 Dec 2011 02:59:57 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Dec 2011 06:03: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:55059 Archived-At: On Mon, Dec 19, 2011 at 11:44, Joakim H=C3=A5rsman wrote: > On 18 December 2011 19:13, Eli Zaretskii wrote: >>> Date: Sun, 18 Dec 2011 18:31:55 +0100 >>> From: Joakim H=C3=A5rsman >>> >>> > That's good news. =C2=A0However, I'm puzzled: are you saying that the= code >>> > points passed by Windows to Emacs for the characters generated by MKL= C >>> > are outside the Unicode BMP, i.e. larger than 65535? =C2=A0If so, wha= t code >>> > points are they? >>> >>> No, none of the characters I needed are outside the BMP. >>> >>> WM_CHAR encodes the codepoint in UTF-16 inside wParam, while >>> WM_UNICHAR uses UTF-32. So if I press something which gives U+2218 >>> RING OPERATOR, I get a WM_CHAR event with a wParam of 2228248 or >>> 0x220018. >> >> ??? UTF-16 encodes the characters in the BMP as themselves, i.e. a >> single 16-bit value that is numerically identical to the codepoint. >> That is, you should have gotten 0x2218. =C2=A0What am I missing? > > I just assumed Windows encoded the codepoints into a DWORD in some > funky way, but looking more closely at the documentattion it appears > like wParam should just be the codepoint. Even more strangely, some > places claim that if a keyboard produces a character outside the BMP, > you get two WM_CHAR events. > > From what I can tell, Emacs itself never alters wParam, but I guess > Windows might do some funky multibyte encoding since Emacs isn't > completely Unicode? Maybe Emacs on windows still is using the ANSI version of DefWindowProc? Se= e http://blogs.msdn.com/b/michkap/archive/2007/03/25/1945659.aspx