From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#29837: UTF-16 char display problems and the macOS "character palette" Date: Mon, 25 Dec 2017 21:07:12 +0000 Message-ID: References: <20171224160053.GA71863@breton.holly.idiocy.org> <83bmiojc8y.fsf@gnu.org> <20171224182321.GA72021@breton.holly.idiocy.org> <834logj6nz.fsf@gnu.org> <20171224192807.GA73590@breton.holly.idiocy.org> <83zi67j4xe.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11414e1e75b2700561308d14" X-Trace: blaine.gmane.org 1514235980 17372 195.159.176.226 (25 Dec 2017 21:06:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Dec 2017 21:06:20 +0000 (UTC) Cc: Alan Third , 29837@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 25 22:06:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTZws-0003ph-ES for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 22:06:14 +0100 Original-Received: from localhost ([::1]:35775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTZyn-0006U8-Hh for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 16:08:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTZyf-0006Tc-HL for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 16:08:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTZyc-00038K-7j for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 16:08:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTZyc-00037z-4R for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 16:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eTZyb-0004Jq-TE for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 16:08:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20171224160053.GA71863@breton.holly.idiocy.org> Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Dec 2017 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29837 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29837-submit@debbugs.gnu.org id=B29837.151423605016561 (code B ref 29837); Mon, 25 Dec 2017 21:08:01 +0000 Original-Received: (at 29837) by debbugs.gnu.org; 25 Dec 2017 21:07:30 +0000 Original-Received: from localhost ([127.0.0.1]:52201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTZy6-0004J3-A1 for submit@debbugs.gnu.org; Mon, 25 Dec 2017 16:07:30 -0500 Original-Received: from mail-qt0-f177.google.com ([209.85.216.177]:43495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTZy4-0004Iq-Ik for 29837@debbugs.gnu.org; Mon, 25 Dec 2017 16:07:28 -0500 Original-Received: by mail-qt0-f177.google.com with SMTP id w10so43384640qtb.10 for <29837@debbugs.gnu.org>; Mon, 25 Dec 2017 13:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:from:date:message-id:subject:to:cc; bh=rvooZLsrvz8YvuUnquICgAY9XT+rbewSEfdL0pCrUO8=; b=lIXdfPRHmBvXz37pbcGmXuYOOb+Be6jLA24eiTV9inh+F4OMmKPNx7nRayHNIwlw4S I4tt+rWKSEQcqFa9mtd9fD2zhr8N7lylW41rah8UvHtqwH3c69IWMOm4fGo1KM31xWFC nsTa0hIiVFBM7cG/C04ZJAeL2PghYj7VfUCaex15rxmfhANPAt42EE5oSuTHtzsryWZq xTZmMYz87WPuyQWUwXiP2mkWf5/JK7IBZAjFUQkUI6NtR9oMSSgGcX4WPecgy2AYRobg HO2CNjl21GkfpReQx6PqYCF+Z2GBKS/IoQJfgt8FUv7ih98u9Y1ilyW759Z203osw29z tSDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:from:date:message-id :subject:to:cc; bh=rvooZLsrvz8YvuUnquICgAY9XT+rbewSEfdL0pCrUO8=; b=sAhGwzBA2BuBWDX6PmEzMlbeAyJwDHeXXY0EqQB0U7z2iiwUi3bggIORxDrYrBN4U3 FHsOr0v7cAY31m7x1NGKDgCFgFJIQMaqh6H9g89DKbCh2lB8Z7kMxA0jdfbR7rQPXElo OYyaYLEqDpWBImtRBpv1C6uPahHgekGm4xfdXQwtgiDiApPwLD1r3DZ95LjnbezvLkDw HqGy08N8xJ4QWpMyITesl1DIorqtV3Wys6hxbHtt0mkREUgbRZyO6tqVyrgarxMhbb7N AlnsmPNArVlmJf+7gfI0dYC9+lRvdNuvGXfMfNDrTVZWcJoZNMDGFpG8f7Qskd0893nL sD4g== X-Gm-Message-State: AKGB3mJSqqt1KFLg1wH40JemWcxDNN9ru7eL8d9LXU0oOtPtFeH4UBas +hYiS+N0LTGLdP0C5+achCSdoVtcFuY1nZQHXeQ= X-Google-Smtp-Source: ACJfBouwwNnM9wHuF8hgUJsgShql6BZoXsNhJOhxirsbN9bOizPzXA5FMDFmbm9AtpbN2ToNk9j1qTCV++tVT1HNlpk= X-Received: by 10.237.60.206 with SMTP id e14mr25359112qtf.157.1514236043177; Mon, 25 Dec 2017 13:07:23 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141503 Archived-At: --001a11414e1e75b2700561308d14 Content-Type: text/plain; charset="UTF-8" Philipp Stephani schrieb am Mo., 25. Dez. 2017 um 21:13 Uhr: > > > Eli Zaretskii schrieb am So., 24. Dez. 2017 um 20:35 Uhr: > >> > Date: Sun, 24 Dec 2017 19:28:07 +0000 >> > From: Alan Third >> > Cc: 29837@debbugs.gnu.org >> > >> > If I try to select utf-16 I get this >> > >> > set-keyboard-coding-system: Unsuitable coding system for keyboard: >> utf-16 >> > >> > and I used tab completion to find which other coding systems were >> > available but all the ones beginning utf-16 that I tried return the >> > same message. >> >> Oh, I now recollect that Handa-san said at some point that keyboard >> input doesn't support UTF-16... >> >> How do other macOS programs read UTF-16 keyboard input? Maybe you >> could use the same way to read the sequences, and then decode them >> internally as UTF-16 using coding.c facilities, and feed them into the >> Emacs event queue? Just a thought. >> >> > IIUC Emacs receives the input as a single UTF-16 string (in insertText) ... > On a somewhat related note, insertText: is itself deprecated and should be replaced with insertText:replacementRange:. --001a11414e1e75b2700561308d14 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Philip= p Stephani <p.stephani2@gmail.c= om> schrieb am Mo., 25. Dez. 2017 um 21:13=C2=A0Uhr:


Eli Zaretskii <eliz@g= nu.org> schrieb am So., 24. Dez. 2017 um 20:35=C2=A0Uhr:
> Date: Sun, 24 Dec 2017 19:28:07 +0000
> From: Alan Third <alan@idiocy.org>
> Cc: 29837@d= ebbugs.gnu.org
>
> If I try to select utf-16 I get this
>
>=C2=A0 =C2=A0 =C2=A0set-keyboard-coding-system: Unsuitable coding syste= m for keyboard: utf-16
>
> and I used tab completion to find which other coding systems were
> available but all the ones beginning utf-16 that I tried return the > same message.

Oh, I now recollect that Handa-san said at some point that keyboard
input doesn't support UTF-16...

How do other macOS programs read UTF-16 keyboard input?=C2=A0 Maybe you
could use the same way to read the sequences, and then decode them
internally as UTF-16 using coding.c facilities, and feed them into the
Emacs event queue?=C2=A0 Just a thought.


IIUC Emacs receives the input as a single = UTF-16 string (in insertText) ...

On a somewhat related note, insertText: is itself deprecated and s= hould be replaced with=C2=A0insertText:replacementRange:.
--001a11414e1e75b2700561308d14--