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 16:40:08 +0100 Message-ID: References: <8739clgapc.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 1323963654 25461 80.91.229.12 (15 Dec 2011 15:40:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2011 15:40:54 +0000 (UTC) Cc: 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 16:40:50 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 1RbDQP-000575-DS for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2011 16:40:49 +0100 Original-Received: from localhost ([::1]:60625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbDQO-0001SM-UW for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2011 10:40:48 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbDQK-0001DB-I4 for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 10:40:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbDQ9-0000nP-C9 for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 10:40:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbDQ8-0000mm-Vq for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 10:40:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RbDRZ-0003bK-Vn for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2011 10:42:02 -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 15:42: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.132396370313818 (code B ref 10299); Thu, 15 Dec 2011 15:42:01 +0000 Original-Received: (at 10299) by debbugs.gnu.org; 15 Dec 2011 15:41:43 +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 1RbDRH-0003ap-Ap for submit@debbugs.gnu.org; Thu, 15 Dec 2011 10:41:43 -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 1RbDRD-0003ag-UJ for 10299@debbugs.gnu.org; Thu, 15 Dec 2011 10:41:40 -0500 Original-Received: by eaad1 with SMTP id d1so1967959eaa.3 for <10299@debbugs.gnu.org>; Thu, 15 Dec 2011 07:40:09 -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=jmDlpM6q2WExSKZj/njDfLTvAeQ0572+qzvxIyT9jgo=; b=x+Rcv/UiM+YuE8UvC2/7/Lzi0mjPGKkGX9TgnjDKnc3LXpAVmjoFwLQrgRLlbZv6yr isXqh0/XNdl4PwI8SE2L0JIQLxy+r6R1xJ3PMuTXwLQqjoy7fi29s1jn57yXpzpm0oIg cEhysWdFkRWqEUbVz+/baEUYzJMQuRLX68pDI= Original-Received: by 10.205.129.148 with SMTP id hi20mr1361442bkc.25.1323963609007; Thu, 15 Dec 2011 07:40:09 -0800 (PST) Original-Received: by 10.204.58.209 with HTTP; Thu, 15 Dec 2011 07:40:08 -0800 (PST) In-Reply-To: <8739clgapc.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 15 Dec 2011 10:42: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:54991 Archived-At: On 15 December 2011 15:40, Jason Rumney wrote: > Eli Zaretskii writes: > >>> Date: Wed, 14 Dec 2011 21:39:28 +0100 >>> From: Joakim H=E5rsman >>> >>> However, Emacs doesn't seem to handle the case when the keyboard >>> layout contains characters not available in the ANSI code page, and >>> just prints a question mark character instead. >> >> Yes, Emacs on Windows uses the ANSI codepage to read the keyboard >> input. =A0Does it help to play with the value of keyboard-coding-system? > > It tries to use Unicode if the Windows input method is sending it. =A0The > problem here is that there is no standard for Windows input methods, so > even the ones built into Windows act differently for different languages > and for the same language across different versions of Windows. > > Some input methods will send WM_UNICHAR messages with the Unicode > character, which can be intercepted before they are turned into question > marks by Windows. These will just work with Emacs. > > Others will send character codes corresponding to the codepoints in the > default Windows codepage for that language (regardless of your system > codepage). These can be handled by changing keyboard-coding-system > within Emacs. > > Others will not send anything useful unless your system codepage is set > appropriately for the language being input. > > It sounds like this one may be in the third category. Well, the custom keyboard layout works in all other programs I've tried so Windows is certainly sending something useful to them. However, I think IMEs use a slightly different, more complex method to send input events. Emacs seems to handle IMEs better than custom keyboard layouts, with an IME you can get ungarbled Unicode characters into Emacs.