From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29837: UTF-16 char display problems and the macOS "character palette" Date: Sun, 24 Dec 2017 18:56:29 +0200 Message-ID: <83bmiojc8y.fsf@gnu.org> References: <20171224160053.GA71863@breton.holly.idiocy.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1514134521 30772 195.159.176.226 (24 Dec 2017 16:55:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Dec 2017 16:55:21 +0000 (UTC) Cc: 29837@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 24 17:55:17 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 1eT9YO-0007Ka-GO for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Dec 2017 17:55:12 +0100 Original-Received: from localhost ([::1]:58536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eT9aL-0001pd-9m for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Dec 2017 11:57:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eT9aE-0001oj-2B for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2017 11:57:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eT9aA-0008Kt-4n for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2017 11:57:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42141) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eT9aA-0008Kb-0u for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2017 11:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eT9a9-0002nU-NJ for bug-gnu-emacs@gnu.org; Sun, 24 Dec 2017 11:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Dec 2017 16:57: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.151413459510717 (code B ref 29837); Sun, 24 Dec 2017 16:57:01 +0000 Original-Received: (at 29837) by debbugs.gnu.org; 24 Dec 2017 16:56:35 +0000 Original-Received: from localhost ([127.0.0.1]:50822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eT9Zj-0002mm-IE for submit@debbugs.gnu.org; Sun, 24 Dec 2017 11:56:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eT9Zi-0002ma-IR for 29837@debbugs.gnu.org; Sun, 24 Dec 2017 11:56:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eT9ZZ-0007Zq-FN for 29837@debbugs.gnu.org; Sun, 24 Dec 2017 11:56:29 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eT9ZZ-0007Zk-Cl; Sun, 24 Dec 2017 11:56:25 -0500 Original-Received: from [176.228.60.248] (port=1596 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eT9ZY-0001J8-O6; Sun, 24 Dec 2017 11:56:25 -0500 In-reply-to: <20171224160053.GA71863@breton.holly.idiocy.org> (message from Alan Third on Sun, 24 Dec 2017 16:00:53 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:141451 Archived-At: > Date: Sun, 24 Dec 2017 16:00:53 +0000 > From: Alan Third > > It’s easy enough to bring it up (patch attached) but some special > characters are put into Emacs incorrectly. I think the problem is that > we have multi code‐point UTF‐16 characters, and when they are ‘typed’ > into Emacs they are entered as individual 16 bit code‐points and are > therefore displayed as a series of blank spaces. > > An example is '🢫' (RIGHTWARDS FRONT-TILTED SHADOWED WHITE ARROW). If I > enter it using C‐x 8 RET, it appears correctly, but if I use the > character palette it shows up as two blank spaces. Describe-char > reveals these to be HIGH SURROGATE-D83E and LOW SURROGATE-DCAB, in > that order. You need to tell Emacs that keyboard input is in UTF-16. Did you try "C-x RET k"? > (Another minor irritation is that some characters (like pointing > hands) seem to insert the desired character then follow up with > VARIATION SELECTOR-15. I assume this is supposed to tell us what > colour we want the hand? If so should it be displayed?) Emacs doesn't yet support variation selectors. Patches to add that are welcome (I guess it will need some change in our interface with font back-ends?).