From unknown Tue Jun 17 21:53:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Resent-From: Will Chang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2022 04:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54441 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 54441@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164757615223145 (code B ref -1); Fri, 18 Mar 2022 04:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Mar 2022 04:02:32 +0000 Received: from localhost ([127.0.0.1]:55924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV3os-000619-Vp for submit@debbugs.gnu.org; Fri, 18 Mar 2022 00:02:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:55862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV3Uc-0005Nl-5t for submit@debbugs.gnu.org; Thu, 17 Mar 2022 23:41:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV3Ub-00019P-Uj for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 23:41:33 -0400 Received: from [2a00:1450:4864:20::52f] (port=33353 helo=mail-ed1-x52f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nV3UZ-0004Xr-UO for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 23:41:33 -0400 Received: by mail-ed1-x52f.google.com with SMTP id r23so8907091edb.0 for ; Thu, 17 Mar 2022 20:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=bG6XL8dB5J3Bumc2BQ5mzbUk+8tJ2PJglEBzX3Fwro0=; b=SdHxktJB0gdMruNmpI9QO7CFrS79j/EKu0WPTWmdGvY8+HzggZJTQdb7Q7C3+FBn4X Bkg4q15mVaDaZp8GhKtUd1HRXG8xV792fWmjSEWg7e1dn6Sl/s9BpmV6UTfc70TJ24bG vb1ajn5OTas6jV/UuabQ098c2jgF7XxXwVPErxdELO+7LN3EnGZGYrwu0UPc779xzwjt Up58hP+420JZdmTqpnW/wjFlWG3++pCU1kR3yNdPuJ+viKdn6AwDq6MWy1+oWThl2Oki gKH1ulASF7tLn7C4D/DZrpcmcWZ3aOjE+OTDCZX3yBFkns3xyewDjQqiH2IZhTGCCHCE pkJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bG6XL8dB5J3Bumc2BQ5mzbUk+8tJ2PJglEBzX3Fwro0=; b=sCs/ONfYEi89AIpuiMgaC70HzNiMydbFHExn+s6Q1zAN3vT5syxd0U42Dpa7b7c4Fj 1oOFGwQ7buTg5yiJOKSeD/OgjJDcdAT+TzOXYhIojYvQTukYb2/0BnDGXdHglXMj01AH Yqoo+1Q/g68cQcH13AOM+Y+/sGfq2lCAna1AIOn61cpzqh6A5wciqyKwIuUN1r0RIydT aEVBlZYuYJ6KVELyYybHBqW9bRomNbB/R09dwkCUtP1BiWpQsuMRVsBSd4pb+CoUcEeK jw49/Ugaeqk6XxxrHhf/L9WLOVoIi33Q9nXoVSNDlVln42/GkwkGLNp2bNX0jdK+UwW+ Ofog== X-Gm-Message-State: AOAM531PZ5E24Cfse72IRk+KeMu6JTPW3g/LnJdIcWRmLoYd5xRfgOco KSmQVr6aafFz9cMLmL4K4OJdoq2TmVcmtULFLqdLRG9QJ6jRZw== X-Google-Smtp-Source: ABdhPJyAF+uj8XxgSnyJt/nxdr0acFv5rDXWik3vn64rRc0HGB+DqOIJommAXSv6yDFFSxFSoIyB6Ue8YYdkzYz4W6E= X-Received: by 2002:a05:6402:2753:b0:416:a97:e962 with SMTP id z19-20020a056402275300b004160a97e962mr7521320edd.315.1647574889109; Thu, 17 Mar 2022 20:41:29 -0700 (PDT) MIME-Version: 1.0 From: Will Chang Date: Fri, 18 Mar 2022 11:41:00 +0800 Message-ID: Content-Type: multipart/alternative; boundary="000000000000019bc805da75ec69" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=will.b.chang@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Fri, 18 Mar 2022 00:02:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) --000000000000019bc805da75ec69 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This bug shows up with the code following: ;; =F0=9F=98=84 (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) (set-language-environment "UTF-8") Steps to reproduce: 1. eval-buffer and the emoji doesn't show up correctly. 2. Comment out (set-language-environment "UTF-8") and run eval-buffer the emoji shows up correctly. I encountered this bug from Emacs mac port bitbucket.org/mituharu/emacs-mac/src/work/ 28.0.92 to make sure it's not only on that port, I download Emacs from emacsformacosx.com and reproduced the bug. I found that emacs -Q is not available in Terminal so I tested it with no init files. This is the first time I reported a bug to Emacs, please forgive me for any inappropriate thing. In 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 built on builder10-14.lan Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.3 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 54262 10538) (symbols 48 6616 1) (strings 32 18521 1412) (string-bytes 1 615366) (vectors 16 14366) (vector-slots 8 197125 10303) (floats 8 23 40) (intervals 56 237 2) (buffers 992 13)) --000000000000019bc805da75ec69 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


This bug shows up with the code following:

= ;; =F0=9F=98=84

(set-fontset-font "fontset-default" 'u= nicode "Apple Color Emoji" nil 'prepend)

(set-language= -environment "UTF-8")

Steps=C2=A0to reproduce:
1. eval-= buffer and the emoji doesn't show up correctly.
2. Comment out (set-= language-environment "UTF-8") and run eval-buffer
the emoji sh= ows up correctly.


I encountered this bug from Emacs mac port
= bitbucket.org/mituharu/emacs-mac/src/work/ 28.0.92 to make sure it= 's
not only on that port, I download Emacs from emacsformacosx.com and
reproduce= d the bug. I found that emacs -Q is not available in Terminal so I testedit with no init files.

This is the first time I reported=C2=A0a bu= g to Emacs, please forgive me for any
inappropriate thing.


In GNU Emacs 28.0.92 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.= 60 Version 10.14.6 (Build 18G95))
=C2=A0of 2022-03-14 built on builder10= -14.lan
Windowing system distributor 'Apple', version 10.3.2113<= br>System Description: =C2=A0macOS 12.3

Configured using:
=C2=A0&= #39;configure --with-ns '--enable-locallisppath=3D/Library/Application<= br>=C2=A0Support/Emacs/${version}/site-lisp:/Library/Application
=C2=A0S= upport/Emacs/site-lisp' --with-modules'

Configured features:=
ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADSTOOLKIT_SCROLL_BARS ZLIB

Important settings:
=C2=A0 value of $LA= NG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mod= e: ELisp/d

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2= =A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode:= t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2= =A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-= mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
= =C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 au= to-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-num= ber-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t<= br>
Load-path shadows:
None found.

Features:
(shadow sort m= ail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-s= ec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs aut= h-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache j= son map text-property-search time-date
subr-x seq byte-opt gv bytecomp b= yte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 maila= bbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 i= etf-drums mm-util mail-prsvr mail-utils
time iso-transl tooltip eldoc pa= ren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwh= eel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar = dnd fontset image
regexp-opt fringe tabulated-list replace newcomment te= xt-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow i= search easymenu
timer select scroll-bar mouse jit-lock font-lock syntax = font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-= 8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eu= cjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indi= an
cyrillic chinese composite emoji-zwj charscript charprop case-tableepa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvicebutton loaddefs faces cus-face macroexp files window text-properties
ov= erlay sha1 md5 base64 format env code-pages mule custom widget
hashtable= -print-readable backquote threads kqueue cocoa ns multi-tty
make-network= -process emacs)

Memory information:
((conses 16 54262 10538)
= =C2=A0(symbols 48 6616 1)
=C2=A0(strings 32 18521 1412)
=C2=A0(string= -bytes 1 615366)
=C2=A0(vectors 16 14366)
=C2=A0(vector-slots 8 19712= 5 10303)
=C2=A0(floats 8 23 40)
=C2=A0(intervals 56 237 2)
=C2=A0(= buffers 992 13))
--000000000000019bc805da75ec69-- From unknown Tue Jun 17 21:53:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2022 06:52: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: To: Will Chang Cc: 54441@debbugs.gnu.org Received: via spool by 54441-submit@debbugs.gnu.org id=B54441.164758629616556 (code B ref 54441); Fri, 18 Mar 2022 06:52:01 +0000 Received: (at 54441) by debbugs.gnu.org; 18 Mar 2022 06:51:36 +0000 Received: from localhost ([127.0.0.1]:56083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV6SW-0004Iy-9v for submit@debbugs.gnu.org; Fri, 18 Mar 2022 02:51:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV6SV-0004Ik-2M for 54441@debbugs.gnu.org; Fri, 18 Mar 2022 02:51:35 -0400 Received: from [2001:470:142:3::e] (port=44004 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 1nV6SP-00067w-Oy; Fri, 18 Mar 2022 02:51:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Uz6FNj2rPo8FxZ8lg8/MTBPWCxzoInT0+wgQAMkkal0=; b=IJc/XPOAHWmX 4kp/qcleiHYPWNl1TJ9t69CXbeklYvGwQHY+gtHGrBL0crIxqSLQc+D7hcRRzAJ4PRjr5ZsCFUu8K iEBbch1TgKB4O1poJO5hEL1y9u+nG1rWi9m9Q/HfGxDq8LeEf+8KTkyBC/b9rVt25pzKEKNcMnVzI xemPh4QfuueqRzIk26ThKerM6pPz314TJ/u3Ew7VGFMHjJbg3wk7gXM/IHHDJbXBFEV7SYoABOBVm hatFg8LEf/Xjl355a37qcv2JnYo7JRTG9BFhrJMyDo+pytjM5VAwb3XI07CzXlhZ5BgumMMciw+cy PZEuLdfR7OUv/aJ8H9ixcw==; Received: from [87.69.77.57] (port=4442 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 1nV6SP-0005vb-5T; Fri, 18 Mar 2022 02:51:29 -0400 Date: Fri, 18 Mar 2022 08:51:26 +0200 Message-Id: <83a6dnhhxt.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Will Chang on Fri, 18 Mar 2022 11:41:00 +0800) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Will Chang > Date: Fri, 18 Mar 2022 11:41:00 +0800 > > (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) > > (set-language-environment "UTF-8") > > Steps to reproduce: > 1. eval-buffer and the emoji doesn't show up correctly. > 2. Comment out (set-language-environment "UTF-8") and run eval-buffer > the emoji shows up correctly. Please tell: . does this happen in "emacs -Q", if you evaluate the above immediately upon entering Emacs? . what is the language environment before the evaluation of set-language-environment above? . 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? . what did you mean by "emoji doesn't show up correctly"? how was it displayed "incorrectly"? And I have 2 comments, which may or may not be relevant to this issue: 1) It is a very bad idea to do the likes of (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) That's because the character set 'unicode spans the entire range of Unicode characters, and there's no single font that can possibly support all of those characters. 2) You should set the language environment _before_ any other customizations related to character sets and fonts, because the language environment affects those customizations. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 18 12:52:48 2022 Received: (at control) by debbugs.gnu.org; 18 Mar 2022 16:52:48 +0000 Received: from localhost ([127.0.0.1]:58228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVFqK-0002Sv-4i for submit@debbugs.gnu.org; Fri, 18 Mar 2022 12:52:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVFqI-0002Sc-4o for control@debbugs.gnu.org; Fri, 18 Mar 2022 12:52:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yIlJ5VAtyzpjXQgQfcAgGAb/+7+3vo67hzMprJm8LME=; b=MLc9650dz4dKh8AyRETVTFrBzQ aCq3v1t4XosfxwgBpcVbqb2jtPJWeKYFt51zjU7u1pFwFI+kEk0EbBEBGgjxUrGoi1joVWVm/u2sG aKyEzqh33tkNnEEPAFBkAX+aQ2DMdyNFg5PUl/fZO81JubChe6OBztkQv2C8sHfl3KWk=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nVFq9-0006e5-Nb for control@debbugs.gnu.org; Fri, 18 Mar 2022 17:52:39 +0100 Date: Fri, 18 Mar 2022 17:52:36 +0100 Message-Id: <877d8rqk2z.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #54441 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 54441 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 54441 + moreinfo quit From unknown Tue Jun 17 21:53:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up 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 To: Will Chang Cc: 54441@debbugs.gnu.org Received: via spool by 54441-submit@debbugs.gnu.org id=B54441.164767279821999 (code B ref 54441); Sat, 19 Mar 2022 06:54:01 +0000 Received: (at 54441) by debbugs.gnu.org; 19 Mar 2022 06:53:18 +0000 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 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 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==; 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 Date: Sat, 19 Mar 2022 08:53:11 +0200 Message-Id: <83mthmfn6w.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Will Chang on Sat, 19 Mar 2022 11:06:06 +0800) References: <83a6dnhhxt.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [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. From unknown Tue Jun 17 21:53:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Resent-From: Will Chang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Mar 2022 08:52: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 To: Eli Zaretskii Cc: mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp, 54441@debbugs.gnu.org Received: via spool by 54441-submit@debbugs.gnu.org id=B54441.16476799112949 (code B ref 54441); Sat, 19 Mar 2022 08:52:01 +0000 Received: (at 54441) by debbugs.gnu.org; 19 Mar 2022 08:51:51 +0000 Received: from localhost ([127.0.0.1]:58970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVUoQ-0000lV-M1 for submit@debbugs.gnu.org; Sat, 19 Mar 2022 04:51:51 -0400 Received: from mail-ej1-f49.google.com ([209.85.218.49]:46600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVUoP-0000lF-1o for 54441@debbugs.gnu.org; Sat, 19 Mar 2022 04:51:49 -0400 Received: by mail-ej1-f49.google.com with SMTP id qx21so20944089ejb.13 for <54441@debbugs.gnu.org>; Sat, 19 Mar 2022 01:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KON9gHcKfwK7wsF9VyByq2OvsFF/mGHFwKILk4WFsmI=; b=FtGfKrClznuFc7muqc/+lIEX+Tr+Xx+BK1oruzc0ufw+jkx4RJji5yMEqyZp6tlKom yq1kpoDzzeCT/HE3E7akzZb4gqDrdGFVryCAcVDhdOND8pj7NJdGTG+jpV2XbRt5DxBc CwwYuB8hPjH8QYetzd38zuK5hePv8Qqv2Y++9YKtAYNdePmsqr6XleNoj9riSCNV+3gR ljGeka7HzL1OzSXZtNb9YOaGFJPyLJRJF/2IjQi63bXC1fwzDr+FxD91QSMZ5UzrZcR3 w5m5GnDFqX46igdQ5DFy0CWmYLLQXtmZc6GAc6KVpyZE+RbTIuTrFhaIyiOlY7bZwqB/ 3S0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KON9gHcKfwK7wsF9VyByq2OvsFF/mGHFwKILk4WFsmI=; b=Wou1t7RShYlA0NZATg0FcwST8hJdWAi66fX01PG0g0q7Urqd+0X5YUMekh4mkdMaev 2WQZwNVtFLG2fwzLEZVticUtpuYoJAAcUP/w7Www9ygMeT1BofpuFb/TMSbyUoing0LC n/Q4CT94Jl+WJ7xzhfJoAz40slrGhETP+7gyXDP58x2jw59IqUSY6kc+N5EB8cgyDq+w 6tqKGY1NHA8vzA18Q1LaebtnAmbJhz9yrnhOA50POu4eFDkcIGvfeLyHMrDR0WWXgXmP WghxBMrsNWcE3hLlsDleu9+DQrZXl4A9fohU/Klz0toRjJXTj08j6jsXhUAR3G4YA17z oASg== X-Gm-Message-State: AOAM532SRaarloe9iwCvPipSiOvSxuq8A0+V2rN7piZ49TBhHtyq1LzB 8arpHuJMBZRzyAM8sGAsduVS8nr1pWp4iotoa6ccWRwcFytIV6m9 X-Google-Smtp-Source: ABdhPJz6M+BFxtHQ7BEQwJbWD46RAygPWeFmO+5UkHPixBhzpRx7rHXYW4/TWI5vHBdtlxgX8/g6sYyWWvLnMOKj6BU= X-Received: by 2002:a17:907:2cc6:b0:6df:78bc:583c with SMTP id hg6-20020a1709072cc600b006df78bc583cmr12372892ejc.238.1647679902832; Sat, 19 Mar 2022 01:51:42 -0700 (PDT) MIME-Version: 1.0 References: <83a6dnhhxt.fsf@gnu.org> <83mthmfn6w.fsf@gnu.org> In-Reply-To: <83mthmfn6w.fsf@gnu.org> From: Will Chang Date: Sat, 19 Mar 2022 16:51:31 +0800 Message-ID: Content-Type: multipart/alternative; boundary="0000000000004fdc5d05da8e5fb4" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000004fdc5d05da8e5fb4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > So it's a "C" (a.k.a. "Posix") language environment, looks like. > Somewhat strange, but maybe this is "usual" on macOS? On the previous Emacs Mac Port versions, Emacs doesn't need to set the code below to enable Emoji and the UTF-8 environment doesn't affect it. (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) Maybe it's a bug on that port, I CC'ed the maintainer Mituharu. > What happens if you evaluate > > (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) > > again, after changing the language environment? It remains the same. > AFAICT, this shows that "incorrect" means Emacs uses the Symbola font. Thanks for the info. > 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. I believe it has. Currently, I removed the UTF-8 code and set the Apple Color Emoji font for = a temporary solution. Again, thanks for your help, I learned a lot with your conversation, you're so kind. ;) On Sat, Mar 19, 2022 at 2:53 PM Eli Zaretskii wrote: > [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? > > > > =F0=9F=98=80 .. =F0=9F=99=8F (#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. > --0000000000004fdc5d05da8e5fb4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> So it's a "C" (a.k.a. "Posix"= ) language environment, looks like.
> Somewhat= strange, but maybe this is "usual" on macOS?

<= div>On the previous Emacs Mac Port versions, Emacs doesn't need to set<= /div>
the code below to enable Emoji and the UTF-8 environment doesn= 9;t affect=C2=A0it.

=C2=A0 (set-fontset-font "fontset-default" 'unicode &quo= t;Apple Color Emoji" nil 'prepend)

Maybe it's a bug on that= port, I CC'ed=C2=A0the maintainer Mituharu.

<= br>
> What happens if you evaluate
>
>=C2=A0 =C2=A0(set-fontset-font "fontset-defa= ult" 'unicode "Apple Color Emoji" nil 'prepend)
>
> again, aft= er changing the language environment?
<= br>
It remains the same.

> AFAICT, th= is shows that "incorrect" means Emacs uses the Symbola font.
<= /div>

Thanks for the info.
> Does Apple Color Emoji on your system have glyphs for the = #x1F300 and
> #x1F600 characters?=C2=A0 Those = are the characters we request to be
> supporte= d by a font that is used for emoji.

I believe = it has.


Currently, I removed the UT= F-8 code and set the Apple Color Emoji font for a
temporary solut= ion.

Again, thanks for your help, I learned a lot = with=C2=A0your conversation, you're so kind. ;)

On Sat, Mar 19, 20= 22 at 2:53 PM Eli Zaretskii <eliz@gnu.or= g> wrote:
[Please use Reply All so that the bug tracker is CC'ed.]

> From: Will Chang <will.b.chang@gmail.com>
> Date: Sat, 19 Mar 2022 11:06:06 +0800
>
> >does this happen in "emacs -Q", if you evaluate the abov= e
> immediately upon entering Emacs?
>
> Yes. Tested it on:
> "GNU Emacs 28.0.92 (build 2, x86_64-apple-darwin21.4.0, Carbon Ve= rsion 165
> AppKit 2113.4)
>=C2=A0 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))
>=C2=A0 of 2022-03-14"
>
> > what is the language environment before the evaluation of
>=C2=A0 =C2=A0 =C2=A0set-language-environment above?
>
> I run describe-language-environment and got:
>
> English language environment
>
> Nothing special is needed to handle English.
>
> Sample text:
>=C2=A0 =C2=A0Hello!, Hi!, How are you?
>
> Input methods:
>=C2=A0 =C2=A0programmer-dvorak ("DVP@" in mode line)
>=C2=A0 =C2=A0english-dvorak ("DV@" in mode line)
>
> Character sets:
>=C2=A0 =C2=A0ascii: ASCII (ISO646 IRV)
>
> Coding systems:
>=C2=A0 =C2=A0nothing 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-defa= ult RET"
>=C2=A0 =C2=A0 =C2=A0after evaluating set-language-environment, in parti= cular in the
>=C2=A0 =C2=A0 =C2=A0Emoji block starting from #x1F600?
>
> =F0=9F=98=80 .. =F0=9F=99=8F (#x1F600 .. #x1F64F)
>=C2=A0 =C2=A0 =C2=A0-*-Apple Color Emoji-*-*-*-*-*-*-*-*-*-*-*-*
>=C2=A0 =C2=A0 =C2=A0-*-Noto Color Emoji-*-*-*-*-*-*-*-*-*-*-iso10646-1<= br> >=C2=A0 =C2=A0 =C2=A0-*-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.=C2=A0 Which probably means Emacs
examined Apple Color Emoji and rejected it for some reason.

What happens if you evaluate

=C2=A0 (set-fontset-font "fontset-default" 'unicode "App= le Color Emoji" nil 'prepend)

again, after changing the language environment?

> >what did you mean by "emoji doesn't show up correctly&quo= t;? how was it
>=C2=A0 =C2=A0 =C2=A0displayed "incorrectly"?
>
> The screenshots:
> - default: https://i.imgur.com/jLcwEDk.png
> - English with fontset(correctly): https://i.imgur.com/qgqhCHF.p= ng
> - 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?=C2=A0 Those are the characters we request to be
supported by a font that is used for emoji.
--0000000000004fdc5d05da8e5fb4-- From unknown Tue Jun 17 21:53:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Resent-From: Will Chang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Mar 2022 09:25: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 To: Eli Zaretskii Cc: mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp, 54441@debbugs.gnu.org Received: via spool by 54441-submit@debbugs.gnu.org id=B54441.16476818806527 (code B ref 54441); Sat, 19 Mar 2022 09:25:01 +0000 Received: (at 54441) by debbugs.gnu.org; 19 Mar 2022 09:24:40 +0000 Received: from localhost ([127.0.0.1]:58995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVVKB-0001hB-Lp for submit@debbugs.gnu.org; Sat, 19 Mar 2022 05:24:40 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:40712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVVK7-0001ge-6Z for 54441@debbugs.gnu.org; Sat, 19 Mar 2022 05:24:35 -0400 Received: by mail-ej1-f44.google.com with SMTP id p15so21108151ejc.7 for <54441@debbugs.gnu.org>; Sat, 19 Mar 2022 02:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ftrrw03yN/YM+aJeUq8BJqPrVCB1WKzudhay1PpjfX4=; b=bs0GmQ3uo1bq3y0ZL7RJh7lIyE7eet1t7h6RAwkRsNk3QFsN9XW3c5nInTNDzxDCXa kP58Bu9s/aXlEPGtfn59gHpkq+BHpLpFGHoNsZdJwlCOhuUF1EJQOKxMasVr22b7ZNca EUXZrsh9CK6QGFaf9J9nCR4fb0dFrxPrZ4r3jdXDvRMUd4kH6fDduF9RYmTOP7NFPvYu NDzC1J/hbORmWX1hLm/vMpAgprD2vCi9m9TxAaJYurMkHMV2Yp1Fk3DhPD1JEITxHb7j YGhSFpgZs8R49EIlTHNToU62UoOBFHJaGNvAoYDzgHs8IIyrrFuhKeSBvn8mEejTbXCv wVMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ftrrw03yN/YM+aJeUq8BJqPrVCB1WKzudhay1PpjfX4=; b=FoENmn8BV6XwF+0MLVpwpt7jIJ9z9HaFKFGRd6Qb/2ticrwCFN1yvmlzL2pHgOrsdL OvGx5BBSh7MjNnmX9ojYZH5McTgCys9LG+3uaPGAw3nz2uufwNJ6+odbrvd1rHO1+nJJ FQOzlCyX8awjqpXtwPRUzsRB3K4rav8JVNxPPCoZBTPAV7pJKlIfPtQDKBEjXq1ADnuC FnoBB8dv70KTGNks3VkRH8EG1+I1Rf/lUVObidJP/VepoUFqJVJb1NKINj7aqbgto8SZ E6UDsI02SWrwgkKhxtRzepu4PaqC6IjJ8vYhuFPlxKjM81DzOs6xGwQ4rywKqwi1VFad Y5pA== X-Gm-Message-State: AOAM5319jaGydmlbtm2wACnRl9B9UQi7CXvGY1EM5SvbpMCFhmkJ89IV rVAl4/ZdAcI2JyqePL32ELveYe7gGDm4o+th0GI= X-Google-Smtp-Source: ABdhPJyILfeZ22CS+8ukKwWdycjC9VJ3aBQT2+1G6n5UqTw7+CHeKu1NfpnEKzfM7BI2BbT8LDwdQ7+ndgDPJqO2CI4= X-Received: by 2002:a17:906:3e90:b0:6b6:829b:577c with SMTP id a16-20020a1709063e9000b006b6829b577cmr12560463ejj.711.1647681869011; Sat, 19 Mar 2022 02:24:29 -0700 (PDT) MIME-Version: 1.0 References: <83a6dnhhxt.fsf@gnu.org> <83mthmfn6w.fsf@gnu.org> In-Reply-To: From: Will Chang Date: Sat, 19 Mar 2022 17:24:17 +0800 Message-ID: Content-Type: multipart/alternative; boundary="0000000000008161f205da8ed46f" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000008161f205da8ed46f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Eli, I searched this problem again and found: https://www.reddit.com/r/emacs/comments/pmghug/how_to_correctly_display_mul= ticharacter_emojis/ https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01238.html The code below can solve the problem. (set-fontset-font t 'emoji '("Apple Color Emoji" . "iso10646-1") nil 'prepend) or (set-fontset-font t '(#x1f000 . #x1faff) (font-spec :family "Apple Color Emoji")) You are absolutely right on this: > 1) It is a very bad idea to do the likes of > > (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) > > That's because the character set 'unicode spans the entire range > of Unicode characters, and there's no single font that can > possibly support all of those characters. On Sat, Mar 19, 2022 at 4:51 PM Will Chang wrote: > > So it's a "C" (a.k.a. "Posix") language environment, looks like. > > Somewhat strange, but maybe this is "usual" on macOS? > > On the previous Emacs Mac Port versions, Emacs doesn't need to set > the code below to enable Emoji and the UTF-8 environment doesn't affect i= t. > > (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil > 'prepend) > > Maybe it's a bug on that port, I CC'ed the maintainer Mituharu. > > > > What happens if you evaluate > > > > (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil > 'prepend) > > > > again, after changing the language environment? > > It remains the same. > > > AFAICT, this shows that "incorrect" means Emacs uses the Symbola font. > > Thanks for the info. > > > 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. > > I believe it has. > > > Currently, I removed the UTF-8 code and set the Apple Color Emoji font fo= r > a > temporary solution. > > Again, thanks for your help, I learned a lot with your conversation, > you're so kind. ;) > > On Sat, Mar 19, 2022 at 2:53 PM Eli Zaretskii wrote: > >> [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? >> > >> > =F0=9F=98=80 .. =F0=9F=99=8F (#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. >> > --0000000000008161f205da8ed46f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eli,

I searched this prob= lem again and found:

The code below c= an solve=C2=A0the problem.

=C2=A0 (set-fontset-font t &= #39;emoji '("Apple Color Emoji" . "iso10646-1") nil= 'prepend)

or

=C2=A0 (set-fontset-font= t '(#x1f000 . #x1faff) (font-spec :family "Apple Color Emoji"= ;))


You are absolutely right on= this:

> 1) It is a very bad idea t= o do the likes of
>
= >=C2=A0 =C2=A0 (set-fontset-font "fontset-default" 'unicod= e "Apple Color Emoji" nil 'prepend)
>
>=C2=A0 =C2=A0 That's because the charact= er set 'unicode spans the entire range
>= =C2=A0 =C2=A0 of Unicode characters, and there's no single font that ca= n
>=C2=A0 =C2=A0 possibly support all of those= characters.


On Sat, Mar 19, 2022 at 4:= 51 PM Will Chang <will.b.chang@gmail.com> wrote:
> So it's a "C&quo= t; (a.k.a. "Posix") language environment, looks like.
> Somewhat strange, but maybe this is "usual" o= n macOS?

On the previous Emacs Mac Port versions, Em= acs doesn't need to set
the code below to enable Emoji and th= e UTF-8 environment doesn't affect=C2=A0it.

=C2=A0 (set-fontset-font "fontset-def= ault" 'unicode "Apple Color Emoji" nil 'prepend)

= Maybe it's a bug on that port, I CC'ed=C2=A0the maintainer Mituharu= .


> What happens if you evaluate=
= >
>=C2=A0 =C2=A0(set-fontset-font "fon= tset-default" 'unicode "Apple Color Emoji" nil 'prep= end)
>
> a= gain, after changing the language environment?

<= div>It remains the same.

> AFAICT, this shows t= hat "incorrect" means Emacs uses the Symbola font.
=
Thanks for the info.

> Does Apple Color Emoji on your system have glyphs for the #x1F300 an= d
> #x1F600 characters?=C2=A0 Those are the ch= aracters we request to be
> supported by a fon= t that is used for emoji.

I believe it has.


Currently, I removed the UTF-8 code a= nd set the Apple Color Emoji font for a
temporary solution.
=

Again, thanks for your help, I learned a lot with=C2=A0= your conversation, you're so kind. ;)

On Sat, Mar 19, 2022 at 2:53= PM Eli Zaretskii <eli= z@gnu.org> wrote:
[Please use Reply All so that the bug tracker is CC'ed.]

> From: Will Chang <will.b.chang@gmail.com>
> Date: Sat, 19 Mar 2022 11:06:06 +0800
>
> >does this happen in "emacs -Q", if you evaluate the abov= e
> immediately upon entering Emacs?
>
> Yes. Tested it on:
> "GNU Emacs 28.0.92 (build 2, x86_64-apple-darwin21.4.0, Carbon Ve= rsion 165
> AppKit 2113.4)
>=C2=A0 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))
>=C2=A0 of 2022-03-14"
>
> > what is the language environment before the evaluation of
>=C2=A0 =C2=A0 =C2=A0set-language-environment above?
>
> I run describe-language-environment and got:
>
> English language environment
>
> Nothing special is needed to handle English.
>
> Sample text:
>=C2=A0 =C2=A0Hello!, Hi!, How are you?
>
> Input methods:
>=C2=A0 =C2=A0programmer-dvorak ("DVP@" in mode line)
>=C2=A0 =C2=A0english-dvorak ("DV@" in mode line)
>
> Character sets:
>=C2=A0 =C2=A0ascii: ASCII (ISO646 IRV)
>
> Coding systems:
>=C2=A0 =C2=A0nothing 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-defa= ult RET"
>=C2=A0 =C2=A0 =C2=A0after evaluating set-language-environment, in parti= cular in the
>=C2=A0 =C2=A0 =C2=A0Emoji block starting from #x1F600?
>
> =F0=9F=98=80 .. =F0=9F=99=8F (#x1F600 .. #x1F64F)
>=C2=A0 =C2=A0 =C2=A0-*-Apple Color Emoji-*-*-*-*-*-*-*-*-*-*-*-*
>=C2=A0 =C2=A0 =C2=A0-*-Noto Color Emoji-*-*-*-*-*-*-*-*-*-*-iso10646-1<= br> >=C2=A0 =C2=A0 =C2=A0-*-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.=C2=A0 Which probably means Emacs
examined Apple Color Emoji and rejected it for some reason.

What happens if you evaluate

=C2=A0 (set-fontset-font "fontset-default" 'unicode "App= le Color Emoji" nil 'prepend)

again, after changing the language environment?

> >what did you mean by "emoji doesn't show up correctly&quo= t;? how was it
>=C2=A0 =C2=A0 =C2=A0displayed "incorrectly"?
>
> The screenshots:
> - default: https://i.imgur.com/jLcwEDk.png
> - English with fontset(correctly): https://i.imgur.com/qgqhCHF.p= ng
> - 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?=C2=A0 Those are the characters we request to be
supported by a font that is used for emoji.
--0000000000008161f205da8ed46f-- From unknown Tue Jun 17 21:53:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Mar 2022 09:34:02 +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 To: Will Chang Cc: mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp, 54441@debbugs.gnu.org Received: via spool by 54441-submit@debbugs.gnu.org id=B54441.16476823967468 (code B ref 54441); Sat, 19 Mar 2022 09:34:02 +0000 Received: (at 54441) by debbugs.gnu.org; 19 Mar 2022 09:33:16 +0000 Received: from localhost ([127.0.0.1]:59006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVVSW-0001wO-2G for submit@debbugs.gnu.org; Sat, 19 Mar 2022 05:33:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVVSS-0001w7-Vx for 54441@debbugs.gnu.org; Sat, 19 Mar 2022 05:33:14 -0400 Received: from [2001:470:142:3::e] (port=58738 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 1nVVSM-0007aU-WC; Sat, 19 Mar 2022 05:33:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ApZZqaJ47CEPYFAd8rAc6RaG69lYuQQy0iSNX6znzAM=; b=CPxJ2HvvXyII nYRNBGl59nLx3HTKYr6aLZu0zK6VqPBepE+w0/fZJ/+BWlvGY0UBZz5kjiY7C97gX4cIW4xwqn+PX DLxMgFeIZLVDjEVn8tmI5bhVFrh5uOkdCwTtUwVh0xumAjFE812Q8bK1aIxJqImroT4J4HMjJo2VI 3/Qi+Sr887WukaaGGlihivMHq1gW5APMPxTCTfw1cZlfQiQrbnjVgMqRQQlRvMLtNhMsUVY1j0yBT C7XeXkbh02DUBPAomMO7p/xEgNrt8MJC2/jscBBDTogQhO2gr1v4fYrW09qBlvY8xnNpK+F9sY6Sl tqF6TzHu5oU2ox6Lkv8tTA==; Received: from [87.69.77.57] (port=1383 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 1nVVSL-0004OR-Lm; Sat, 19 Mar 2022 05:33:06 -0400 Date: Sat, 19 Mar 2022 11:33:06 +0200 Message-Id: <83k0cqffsd.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Will Chang on Sat, 19 Mar 2022 17:24:17 +0800) References: <83a6dnhhxt.fsf@gnu.org> <83mthmfn6w.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Will Chang > Date: Sat, 19 Mar 2022 17:24:17 +0800 > Cc: 54441@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp > > I searched this problem again and found: > https://www.reddit.com/r/emacs/comments/pmghug/how_to_correctly_display_multicharacter_emojis/ > https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01238.html > > The code below can solve the problem. > > (set-fontset-font t 'emoji '("Apple Color Emoji" . "iso10646-1") nil 'prepend) > > or > > (set-fontset-font t '(#x1f000 . #x1faff) (font-spec :family "Apple Color Emoji")) So if you use the above instead of your original set-fontset-font, the problem disappears, and the emoji are displayed correctly even after set-language-environment, is that right? From unknown Tue Jun 17 21:53:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Resent-From: Will Chang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Mar 2022 09:37: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 To: Eli Zaretskii Cc: mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp, 54441@debbugs.gnu.org Received: via spool by 54441-submit@debbugs.gnu.org id=B54441.16476825977842 (code B ref 54441); Sat, 19 Mar 2022 09:37:01 +0000 Received: (at 54441) by debbugs.gnu.org; 19 Mar 2022 09:36:37 +0000 Received: from localhost ([127.0.0.1]:59019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVVVl-00022P-3t for submit@debbugs.gnu.org; Sat, 19 Mar 2022 05:36:37 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:39667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVVVi-000229-HO for 54441@debbugs.gnu.org; Sat, 19 Mar 2022 05:36:35 -0400 Received: by mail-ed1-f48.google.com with SMTP id g20so12775285edw.6 for <54441@debbugs.gnu.org>; Sat, 19 Mar 2022 02:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hkQCsU/OUcR5cCXwsHy3eEnGbcS62vmvSPnxhDUDXrs=; b=debjflused0JLPM5cmNbhgBtlZBZY1zxansoXiReo8zry4koMzAXnMhgvNnQmMmTKi SvynnZMPSZSucsJ32ybpzs7XrBeUO3yf4CEr8s7pWyzEYvRzTR5Oc/AUUHbwN2Kg6xek M2h1B2k4O60v2dlrLtHf3TnhIDWoZVUHh/Yzv35EMz7qBh+KWecVPrDL7BfShbmQ5Oou cbcE3zQs0T73ScY2Y6HBBC/FtUjZrlfuL0NsTUeGHrmbxNKSORVX58oUwKBuLDhzPQB7 UTLlqNMAS/wSsPiUHt43bUXOFD8PlM7a/G13tvSXtY4gHpgeF3aebuLhqf71zKUScLlu gSGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hkQCsU/OUcR5cCXwsHy3eEnGbcS62vmvSPnxhDUDXrs=; b=DsyNH8b3gHULokh4sKTHO+CyGHjrZNoSb/b6H+NEpxzHVv+KMWCJlFSOq3tWx6n3SK xZdwvPVe8xFq3n8M2iN6W5rc6zXDiw/Z8ONodjXVxeQgy/rrBhlt2+mWyo0Q6I/kjsEp 6eOfdI7IETeUbv6t5j6xGvtOWCIvT0FGQQgjMAJ6DW5eHPjihDfKdtx/D+uIpP0ikjhI I0xe84jEahKwF6UliGPwKHsaI90R8k0bWOy4MeN/BSb4o2p9wSwrz+zR1ykhSFUYOTWN W7zhKoXJxuGVhUja3XPJYLWpSiSjb5IFWK/sJKJB+ElJrICzOAguz31PIiWdz3TPx0lC KaiQ== X-Gm-Message-State: AOAM532kbYyF4/UHnkxI/jx0QvLS7WYkJFi0XXY1nryOlvdH0dm9SKk3 OFrndDK2odiwx8P1+K9Y2QdPJ/xkYno7I5eAYUk= X-Google-Smtp-Source: ABdhPJzcYa7VDn0NuF+R/O1nh9SUKm7tVUrz3zJ+4twTleRu8vOacbcFRARXy0/JG/FnzAz/jm7uqj4epZ9I6hJCdTI= X-Received: by 2002:a05:6402:348b:b0:419:172c:e2aa with SMTP id v11-20020a056402348b00b00419172ce2aamr5284297edc.261.1647682588684; Sat, 19 Mar 2022 02:36:28 -0700 (PDT) MIME-Version: 1.0 References: <83a6dnhhxt.fsf@gnu.org> <83mthmfn6w.fsf@gnu.org> <83k0cqffsd.fsf@gnu.org> In-Reply-To: <83k0cqffsd.fsf@gnu.org> From: Will Chang Date: Sat, 19 Mar 2022 17:36:17 +0800 Message-ID: Content-Type: multipart/alternative; boundary="00000000000066b59105da8eff0f" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000066b59105da8eff0f Content-Type: text/plain; charset="UTF-8" Yes, it works well even after set-language-environment to UTF-8. On Sat, Mar 19, 2022 at 5:33 PM Eli Zaretskii wrote: > > From: Will Chang > > Date: Sat, 19 Mar 2022 17:24:17 +0800 > > Cc: 54441@debbugs.gnu.org, > mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp > > > > I searched this problem again and found: > > > https://www.reddit.com/r/emacs/comments/pmghug/how_to_correctly_display_multicharacter_emojis/ > > https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01238.html > > > > The code below can solve the problem. > > > > (set-fontset-font t 'emoji '("Apple Color Emoji" . "iso10646-1") nil > 'prepend) > > > > or > > > > (set-fontset-font t '(#x1f000 . #x1faff) (font-spec :family "Apple > Color Emoji")) > > So if you use the above instead of your original set-fontset-font, the > problem disappears, and the emoji are displayed correctly even after > set-language-environment, is that right? > --00000000000066b59105da8eff0f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, it works well even after set-language-environment to = UTF-8.

On Sat, Mar 19, 2022 at 5:33 PM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Will Chang <will.b.chang@gmail.com>
> Date: Sat, 19 Mar 2022 17:24:17 +0800
> Cc: 54441@d= ebbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.a= c.jp
>
> I searched this problem again and found:
> h= ttps://www.reddit.com/r/emacs/comments/pmghug/how_to_correctly_display_mult= icharacter_emojis/
> https://lists.gnu.org/archi= ve/html/emacs-devel/2021-09/msg01238.html
>
> The code below can solve the problem.
>
>=C2=A0 =C2=A0(set-fontset-font t 'emoji '("Apple Color Emo= ji" . "iso10646-1") nil 'prepend)
>
> or
>
>=C2=A0 =C2=A0(set-fontset-font t '(#x1f000 . #x1faff) (font-spec :f= amily "Apple Color Emoji"))

So if you use the above instead of your original set-fontset-font, the
problem disappears, and the emoji are displayed correctly even after
set-language-environment, is that right?
--00000000000066b59105da8eff0f-- From unknown Tue Jun 17 21:53:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Will Chang Subject: bug#54441: closed (Re: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up) Message-ID: References: <83ilsafdei.fsf@gnu.org> X-Gnu-PR-Message: they-closed 54441 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 54441@debbugs.gnu.org Date: Sat, 19 Mar 2022 10:25:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1647685503-21124-1" This is a multi-part message in MIME format... ------------=_1647685503-21124-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot s= how up which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 54441@debbugs.gnu.org. --=20 54441: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54441 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1647685503-21124-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 54441-done) by debbugs.gnu.org; 19 Mar 2022 10:24:45 +0000 Received: from localhost ([127.0.0.1]:59073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVWGL-0005Tp-JF for submit@debbugs.gnu.org; Sat, 19 Mar 2022 06:24:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVWGJ-0005Tc-SH for 54441-done@debbugs.gnu.org; Sat, 19 Mar 2022 06:24:44 -0400 Received: from [2001:470:142:3::e] (port=59062 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 1nVWGD-0006iV-3K; Sat, 19 Mar 2022 06:24:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kHylK+0tWQ9YbjQac0+Ww0LDbEwmN0+2Smo2WxPib5I=; b=QyXbPjx2/81u 9apnch50wLNhuDLVwEHGCm5puoAy0rO5uNP+OwSr1M1Wv77Kb+r575IBuybf6vaVzOElF09F/DyTv BToFE12wtE497S/eI8BVE694vHtdTXlK0N6Cp2nroKrbsLWxwBmPq5dkNmE8iT3rOXJYwRJe8k5Dd 2ngttgMBCP0UThbAhnCaCNwg6DLgJRqN7LS6NS1SzXZsVpFl9a3NAbpLLouE7OHEiS95olLaNlyrG MlhnioH5fvuJzlBEBMDfaXshkIwTfignx2NWjVtJi9xK7hPLOICxjKUKjwC+WA6dVH7UjE1Bf+3BI LKmWhiGnEaLGPbbS7XOFTw==; Received: from [87.69.77.57] (port=4574 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 1nVWGC-0003dR-CP; Sat, 19 Mar 2022 06:24:36 -0400 Date: Sat, 19 Mar 2022 12:24:37 +0200 Message-Id: <83ilsafdei.fsf@gnu.org> From: Eli Zaretskii To: Will Chang In-Reply-To: (message from Will Chang on Sat, 19 Mar 2022 17:36:17 +0800) Subject: Re: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up References: <83a6dnhhxt.fsf@gnu.org> <83mthmfn6w.fsf@gnu.org> <83k0cqffsd.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54441-done Cc: 54441-done@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Will Chang > Date: Sat, 19 Mar 2022 17:36:17 +0800 > Cc: 54441@debbugs.gnu.org, mituharu+bug-gnu-emacs-mac@math.s.chiba-u.ac.jp > > Yes, it works well even after set-language-environment to UTF-8. Great, thanks. Then I think there's no Emacs bug here, and I'm therefore closing this bug report. ------------=_1647685503-21124-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Mar 2022 04:02:32 +0000 Received: from localhost ([127.0.0.1]:55924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV3os-000619-Vp for submit@debbugs.gnu.org; Fri, 18 Mar 2022 00:02:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:55862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV3Uc-0005Nl-5t for submit@debbugs.gnu.org; Thu, 17 Mar 2022 23:41:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV3Ub-00019P-Uj for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 23:41:33 -0400 Received: from [2a00:1450:4864:20::52f] (port=33353 helo=mail-ed1-x52f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nV3UZ-0004Xr-UO for bug-gnu-emacs@gnu.org; Thu, 17 Mar 2022 23:41:33 -0400 Received: by mail-ed1-x52f.google.com with SMTP id r23so8907091edb.0 for ; Thu, 17 Mar 2022 20:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=bG6XL8dB5J3Bumc2BQ5mzbUk+8tJ2PJglEBzX3Fwro0=; b=SdHxktJB0gdMruNmpI9QO7CFrS79j/EKu0WPTWmdGvY8+HzggZJTQdb7Q7C3+FBn4X Bkg4q15mVaDaZp8GhKtUd1HRXG8xV792fWmjSEWg7e1dn6Sl/s9BpmV6UTfc70TJ24bG vb1ajn5OTas6jV/UuabQ098c2jgF7XxXwVPErxdELO+7LN3EnGZGYrwu0UPc779xzwjt Up58hP+420JZdmTqpnW/wjFlWG3++pCU1kR3yNdPuJ+viKdn6AwDq6MWy1+oWThl2Oki gKH1ulASF7tLn7C4D/DZrpcmcWZ3aOjE+OTDCZX3yBFkns3xyewDjQqiH2IZhTGCCHCE pkJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bG6XL8dB5J3Bumc2BQ5mzbUk+8tJ2PJglEBzX3Fwro0=; b=sCs/ONfYEi89AIpuiMgaC70HzNiMydbFHExn+s6Q1zAN3vT5syxd0U42Dpa7b7c4Fj 1oOFGwQ7buTg5yiJOKSeD/OgjJDcdAT+TzOXYhIojYvQTukYb2/0BnDGXdHglXMj01AH Yqoo+1Q/g68cQcH13AOM+Y+/sGfq2lCAna1AIOn61cpzqh6A5wciqyKwIuUN1r0RIydT aEVBlZYuYJ6KVELyYybHBqW9bRomNbB/R09dwkCUtP1BiWpQsuMRVsBSd4pb+CoUcEeK jw49/Ugaeqk6XxxrHhf/L9WLOVoIi33Q9nXoVSNDlVln42/GkwkGLNp2bNX0jdK+UwW+ Ofog== X-Gm-Message-State: AOAM531PZ5E24Cfse72IRk+KeMu6JTPW3g/LnJdIcWRmLoYd5xRfgOco KSmQVr6aafFz9cMLmL4K4OJdoq2TmVcmtULFLqdLRG9QJ6jRZw== X-Google-Smtp-Source: ABdhPJyAF+uj8XxgSnyJt/nxdr0acFv5rDXWik3vn64rRc0HGB+DqOIJommAXSv6yDFFSxFSoIyB6Ue8YYdkzYz4W6E= X-Received: by 2002:a05:6402:2753:b0:416:a97:e962 with SMTP id z19-20020a056402275300b004160a97e962mr7521320edd.315.1647574889109; Thu, 17 Mar 2022 20:41:29 -0700 (PDT) MIME-Version: 1.0 From: Will Chang Date: Fri, 18 Mar 2022 11:41:00 +0800 Message-ID: Subject: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000019bc805da75ec69" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=will.b.chang@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 18 Mar 2022 00:02:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) --000000000000019bc805da75ec69 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This bug shows up with the code following: ;; =F0=9F=98=84 (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) (set-language-environment "UTF-8") Steps to reproduce: 1. eval-buffer and the emoji doesn't show up correctly. 2. Comment out (set-language-environment "UTF-8") and run eval-buffer the emoji shows up correctly. I encountered this bug from Emacs mac port bitbucket.org/mituharu/emacs-mac/src/work/ 28.0.92 to make sure it's not only on that port, I download Emacs from emacsformacosx.com and reproduced the bug. I found that emacs -Q is not available in Terminal so I tested it with no init files. This is the first time I reported a bug to Emacs, please forgive me for any inappropriate thing. In 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 built on builder10-14.lan Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.3 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 54262 10538) (symbols 48 6616 1) (strings 32 18521 1412) (string-bytes 1 615366) (vectors 16 14366) (vector-slots 8 197125 10303) (floats 8 23 40) (intervals 56 237 2) (buffers 992 13)) --000000000000019bc805da75ec69 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


This bug shows up with the code following:

= ;; =F0=9F=98=84

(set-fontset-font "fontset-default" 'u= nicode "Apple Color Emoji" nil 'prepend)

(set-language= -environment "UTF-8")

Steps=C2=A0to reproduce:
1. eval-= buffer and the emoji doesn't show up correctly.
2. Comment out (set-= language-environment "UTF-8") and run eval-buffer
the emoji sh= ows up correctly.


I encountered this bug from Emacs mac port
= bitbucket.org/mituharu/emacs-mac/src/work/ 28.0.92 to make sure it= 's
not only on that port, I download Emacs from emacsformacosx.com and
reproduce= d the bug. I found that emacs -Q is not available in Terminal so I testedit with no init files.

This is the first time I reported=C2=A0a bu= g to Emacs, please forgive me for any
inappropriate thing.


In GNU Emacs 28.0.92 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.= 60 Version 10.14.6 (Build 18G95))
=C2=A0of 2022-03-14 built on builder10= -14.lan
Windowing system distributor 'Apple', version 10.3.2113<= br>System Description: =C2=A0macOS 12.3

Configured using:
=C2=A0&= #39;configure --with-ns '--enable-locallisppath=3D/Library/Application<= br>=C2=A0Support/Emacs/${version}/site-lisp:/Library/Application
=C2=A0S= upport/Emacs/site-lisp' --with-modules'

Configured features:=
ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADSTOOLKIT_SCROLL_BARS ZLIB

Important settings:
=C2=A0 value of $LA= NG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mod= e: ELisp/d

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2= =A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode:= t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2= =A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-= mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
= =C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 au= to-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-num= ber-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t<= br>
Load-path shadows:
None found.

Features:
(shadow sort m= ail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-s= ec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs aut= h-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache j= son map text-property-search time-date
subr-x seq byte-opt gv bytecomp b= yte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 maila= bbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 i= etf-drums mm-util mail-prsvr mail-utils
time iso-transl tooltip eldoc pa= ren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwh= eel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar = dnd fontset image
regexp-opt fringe tabulated-list replace newcomment te= xt-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow i= search easymenu
timer select scroll-bar mouse jit-lock font-lock syntax = font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-= 8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eu= cjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indi= an
cyrillic chinese composite emoji-zwj charscript charprop case-tableepa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvicebutton loaddefs faces cus-face macroexp files window text-properties
ov= erlay sha1 md5 base64 format env code-pages mule custom widget
hashtable= -print-readable backquote threads kqueue cocoa ns multi-tty
make-network= -process emacs)

Memory information:
((conses 16 54262 10538)
= =C2=A0(symbols 48 6616 1)
=C2=A0(strings 32 18521 1412)
=C2=A0(string= -bytes 1 615366)
=C2=A0(vectors 16 14366)
=C2=A0(vector-slots 8 19712= 5 10303)
=C2=A0(floats 8 23 40)
=C2=A0(intervals 56 237 2)
=C2=A0(= buffers 992 13))
--000000000000019bc805da75ec69-- ------------=_1647685503-21124-1--