From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Date: Sat, 19 Mar 2022 08:53:11 +0200 Message-ID: <83mthmfn6w.fsf@gnu.org> References: <83a6dnhhxt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38065"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54441@debbugs.gnu.org To: Will Chang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 19 07:54:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nVSyb-0009m9-2A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Mar 2022 07:54:13 +0100 Original-Received: from localhost ([::1]:44496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVSyZ-0006sd-Jk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Mar 2022 02:54:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVSyQ-0006sN-9P for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2022 02:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVSyQ-0001VJ-01 for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2022 02:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVSyP-0005k6-OK for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2022 02:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Mar 2022 06:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54441 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54441-submit@debbugs.gnu.org id=B54441.164767279821999 (code B ref 54441); Sat, 19 Mar 2022 06:54:01 +0000 Original-Received: (at 54441) by debbugs.gnu.org; 19 Mar 2022 06:53:18 +0000 Original-Received: from localhost ([127.0.0.1]:58904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVSxh-0005il-Jt for submit@debbugs.gnu.org; Sat, 19 Mar 2022 02:53:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVSxf-0005iW-Ui for 54441@debbugs.gnu.org; Sat, 19 Mar 2022 02:53:16 -0400 Original-Received: from [2001:470:142:3::e] (port=52588 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVSxa-0001Pb-La; Sat, 19 Mar 2022 02:53:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=2oqgVyXz0q15M9WKyrS4QlQcaaAE0NOKRsn50QrcJYc=; b=BuR0bCMs6eUJiXfmwMtz kEYA7lEmvRu0+dmD7ws4qNXx7daqxWH+nQyRIdPrAxAhlufUyulTtE+qhRPv0u6Q33i0bWSfeNz+q D7IhCOTX3Qeygp/y+Hk0z4cdiC75xlPBm/Ancrq3zotptg/u1mAAU3BEGG8PML2okpCcmrOm4WzF2 oCR4fp5XK2RgejRy9yZZH9l2gYTOGebM1qb/ifxBLErRwH185SMd/xeLDPUSzo3SdKj7kLANwG96N 3fW5P4+yFZR+YQC7C+m06A3FdS+0NZK9vh40dXVJCHFzTes3etqiLCl1ABCuY8s9mXk4QtCjcFesv 20vjd87TEhrvFg==; Original-Received: from [87.69.77.57] (port=2573 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVSxa-0000GE-2K; Sat, 19 Mar 2022 02:53:10 -0400 In-Reply-To: (message from Will Chang on Sat, 19 Mar 2022 11:06:06 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228580 Archived-At: [Please use Reply All so that the bug tracker is CC'ed.] > From: Will Chang > Date: Sat, 19 Mar 2022 11:06:06 +0800 > > >does this happen in "emacs -Q", if you evaluate the above > immediately upon entering Emacs? > > Yes. Tested it on: > "GNU Emacs 28.0.92 (build 2, x86_64-apple-darwin21.4.0, Carbon Version 165 > AppKit 2113.4) > of 2022-03-18" > "GNU Emacs 28.0.92 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 > Version 10.14.6 (Build 18G95)) > of 2022-03-14" > > > what is the language environment before the evaluation of > set-language-environment above? > > I run describe-language-environment and got: > > English language environment > > Nothing special is needed to handle English. > > Sample text: > Hello!, Hi!, How are you? > > Input methods: > programmer-dvorak ("DVP@" in mode line) > english-dvorak ("DV@" in mode line) > > Character sets: > ascii: ASCII (ISO646 IRV) > > Coding systems: > nothing specific to English So it's a "C" (a.k.a. "Posix") language environment, looks like. Somewhat strange, but maybe this is "usual" on macOS? > > what is the output of "M-x describe-fontset RET fontset-default RET" > after evaluating set-language-environment, in particular in the > Emoji block starting from #x1F600? > > 😀 .. 🙏 (#x1F600 .. #x1F64F) > -*-Apple Color Emoji-*-*-*-*-*-*-*-*-*-*-*-* > -*-Noto Color Emoji-*-*-*-*-*-*-*-*-*-*-iso10646-1 > -*-Symbola-*-*-*-*-*-*-*-*-*-*-iso10646-1 > [-*-Symbola-normal-normal-semicondensed-*-12-*-*-*-p-0-iso10646-1] It sounds like Emacs used Symbola, although Apple Color Emoji is in the list, and is first in the list. Which probably means Emacs examined Apple Color Emoji and rejected it for some reason. What happens if you evaluate (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) again, after changing the language environment? > >what did you mean by "emoji doesn't show up correctly"? how was it > displayed "incorrectly"? > > The screenshots: > - default: https://i.imgur.com/jLcwEDk.png > - English with fontset(correctly): https://i.imgur.com/qgqhCHF.png > - UTF-8 with fontset: https://i.imgur.com/tkjOVGv.png AFAICT, this shows that "incorrect" means Emacs uses the Symbola font. Does Apple Color Emoji on your system have glyphs for the #x1F300 and #x1F600 characters? Those are the characters we request to be supported by a font that is used for emoji.