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#50865: 28.0.50; Emoji with emoji modifier in Linux console garbles emacs display Date: Mon, 04 Oct 2021 19:35:23 +0300 Message-ID: <83o884694k.fsf@gnu.org> References: <87y27cdglm.fsf@sange.fi> <83czooeulj.fsf@gnu.org> <87v92gddcg.fsf@sange.fi> <83bl48eoqk.fsf@gnu.org> <87sfxkd976.fsf@sange.fi> <8335pkeivj.fsf@gnu.org> <831r53d764.fsf@gnu.org> <87v92d564s.fsf@sange.fi> <837det6ida.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36194"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50865@debbugs.gnu.org To: kaura.dev@sange.fi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 04 18:37:10 2021 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 1mXQxi-0009Cr-LP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 18:37:10 +0200 Original-Received: from localhost ([::1]:43848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXQxh-0003mO-PB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 12:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXQxa-0003lZ-7D for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 12:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXQxZ-0006go-Ux for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 12:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXQxZ-0002tq-Lp for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 12:37: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: Mon, 04 Oct 2021 16:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50865 X-GNU-PR-Package: emacs Original-Received: via spool by 50865-submit@debbugs.gnu.org id=B50865.163336536611071 (code B ref 50865); Mon, 04 Oct 2021 16:37:01 +0000 Original-Received: (at 50865) by debbugs.gnu.org; 4 Oct 2021 16:36:06 +0000 Original-Received: from localhost ([127.0.0.1]:38206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXQwf-0002sV-Vs for submit@debbugs.gnu.org; Mon, 04 Oct 2021 12:36:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXQwa-0002rx-Qy for 50865@debbugs.gnu.org; Mon, 04 Oct 2021 12:36:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42518) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXQwU-0005hp-8r; Mon, 04 Oct 2021 12:35:54 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3755 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 1mXQwB-00008Z-GI; Mon, 04 Oct 2021 12:35:49 -0400 In-Reply-To: <837det6ida.fsf@gnu.org> (message from Eli Zaretskii on Mon, 04 Oct 2021 16:15:45 +0300) 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:216368 Archived-At: > Date: Mon, 04 Oct 2021 16:15:45 +0300 > From: Eli Zaretskii > Cc: 50865@debbugs.gnu.org > > > From: Aura Kelloniemi > > Cc: 50865@debbugs.gnu.org > > Date: Mon, 04 Oct 2021 15:25:23 +0300 > > > > The solution of modifying char-width-table at least worked very well for me. > > Of course I am intetrested in the things that will break, if I use it, but > > most likely those will be smaller annoyances than a garbled display. > > > > I can document this hack on emacs wiki, if nothing else can be done. > > I don't recommend documenting such a "solution", because > char-width-table affects more than just the display of wide > characters, it also affects Lisp programs that use string-width and > similar functions. Here's a potentially better solution, which uses the display-table feature built into Emacs to display problematic characters as some other characters: (or standard-display-table (setq standard-display-table (make-display-table))) (aset standard-display-table #x1f64f (vector (make-glyph-code #xFFFD 'escape-glyph))) This sets Emacs to display the U+01F64F PERSON WITH FOLDED HANDS character as a diamond with a special face. If the diamond also causes trouble, try replacing it with some ASCII character, like '?'. If this gives good results, you can do the same for any other problematic character. The disadvantage is that they all will look the same on display, and the only way of knowing what is the real codepoint in the buffer is to go to the character and type "C-u C-x =".