From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Will Chang Newsgroups: gmane.emacs.bugs Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Date: Fri, 18 Mar 2022 11:41:00 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000019bc805da75ec69" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31801"; mail-complaints-to="usenet@ciao.gmane.io" To: 54441@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 18 05:03: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 1nV3pY-000845-Mm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 05:03:12 +0100 Original-Received: from localhost ([::1]:34566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nV3pX-00021P-D7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 00:03:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV3pP-00020f-77 for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 00:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nV3pO-0007zz-Gj for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 00:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nV3pO-000625-Bg for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 00:03:02 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164757615223145 (code B ref -1); Fri, 18 Mar 2022 04:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Mar 2022 04:02:32 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 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:228525 Archived-At: --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--