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 19:34:51 +0200 Message-ID: <83zket20xw.fsf@gnu.org> References: <8739clgapc.fsf@gnu.org> Reply-To: Eli Zaretskii 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 1323970547 14787 80.91.229.12 (15 Dec 2011 17:35:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2011 17:35:47 +0000 (UTC) Cc: joakim.harsman@gmail.com, 10299@debbugs.gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 18:35:43 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 1RbFDX-0003z7-Mh for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2011 18:35:39 +0100 Original-Received: from localhost ([::1]:34458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbFDX-0004DT-9i for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2011 12:35:39 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbFDU-0004DH-IS for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 12:35:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbFDQ-0004pS-CG for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 12:35:36 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbFDQ-0004pK-Af for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 12:35:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RbFEs-0006Hk-C5 for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 12:37: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 17:37: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.132397058524118 (code B ref 10299); Thu, 15 Dec 2011 17:37:02 +0000 Original-Received: (at 10299) by debbugs.gnu.org; 15 Dec 2011 17:36:25 +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 1RbFEH-0006Gw-G2 for submit@debbugs.gnu.org; Thu, 15 Dec 2011 12:36:25 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RbFEE-0006Gn-2N for 10299@debbugs.gnu.org; Thu, 15 Dec 2011 12:36:23 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LW900800A38UD00@a-mtaout20.012.net.il> for 10299@debbugs.gnu.org; Thu, 15 Dec 2011 19:34:49 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.54.125]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LW9006ZQA5ZREP0@a-mtaout20.012.net.il>; Thu, 15 Dec 2011 19:34:48 +0200 (IST) In-reply-to: <8739clgapc.fsf@gnu.org> 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 12:37: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:54992 Archived-At: > From: Jason Rumney > Cc: Joakim H=C3=A5rsman , > 10299@debbugs.gnu.org, handa@m17n.org > Date: Thu, 15 Dec 2011 22:40:15 +0800 >=20 > > Yes, Emacs on Windows uses the ANSI codepage to read the keyboard > > input. Does it help to play with the value of keyboard-coding-sy= stem? >=20 > It tries to use Unicode if the Windows input method is sending it. But am I right that, except for perhaps IME, we mostly get WM_CHAR messages with ANSI character set, because we call the ANSI version of RegisterClass? If that is the reason, are there any complications to call RegisterClassW instead (on NT and later systems; I think Windows 9X are safer with ANSI)? > Some input methods will send WM_UNICHAR messages with the Unicode > character, which can be intercepted before they are turned into que= stion > marks by Windows. These will just work with Emacs. >=20 > Others will send character codes corresponding to the codepoints in= the > default Windows codepage for that language (regardless of your syst= em > codepage). These can be handled by changing keyboard-coding-system > within Emacs. >=20 > Others will not send anything useful unless your system codepage is= set > appropriately for the language being input. >=20 > It sounds like this one may be in the third category. I'm not sure MKLC works through IME. Do you know that for a fact?