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: Wed, 29 Sep 2021 16:00:22 +0300 Message-ID: <83h7e3iljt.fsf@gnu.org> References: <87o88chjsl.fsf@sange.fi> <83a6jwk7cb.fsf@gnu.org> <87ilyk8wu2.fsf@sange.fi> <835yukk44q.fsf@gnu.org> <87fsto8unj.fsf@sange.fi> <8335pok0pv.fsf@gnu.org> <87a6jw8mq2.fsf@sange.fi> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36413"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50865@debbugs.gnu.org To: Aura Kelloniemi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 29 15:08:58 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 1mVZKU-0009JQ-ND for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 15:08:58 +0200 Original-Received: from localhost ([::1]:37896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVZKT-0002W1-N0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 09:08:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVZCo-0001NS-JY for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 09:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVZCo-00033H-9a for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 09:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVZCn-0001WS-WF for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 09:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Sep 2021 13:01: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.16329204515822 (code B ref 50865); Wed, 29 Sep 2021 13:01:01 +0000 Original-Received: (at 50865) by debbugs.gnu.org; 29 Sep 2021 13:00:51 +0000 Original-Received: from localhost ([127.0.0.1]:48049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVZCc-0001Vq-LM for submit@debbugs.gnu.org; Wed, 29 Sep 2021 09:00:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVZCZ-0001Vb-P2 for 50865@debbugs.gnu.org; Wed, 29 Sep 2021 09:00:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55558) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVZCT-0002qE-Pm; Wed, 29 Sep 2021 09:00:41 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4847 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 1mVZC8-0006wo-HP; Wed, 29 Sep 2021 09:00:41 -0400 In-Reply-To: <87a6jw8mq2.fsf@sange.fi> (message from Aura Kelloniemi on Tue, 28 Sep 2021 23:32:53 +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:215846 Archived-At: > From: Aura Kelloniemi > Cc: 50865@debbugs.gnu.org > Date: Tue, 28 Sep 2021 23:32:53 +0300 > > On 2021-09-28 at 21:35 +0300, Eli Zaretskii wrote: > > That should not be that way. Some characters are double-width, and > > should take up 2 columns on display. > > I noticed, that Linux console does not understand most of the zero-width > characters either. It doesn't need to: Emacs displays those characters on a TTY as spaces. > It happily prints most of the code points in the list of > zero-width characters. Of course they are printed just as diamonds, because > Linux cannot store enough glyphs in its 512-glyph font space, but anyway it > prints a diamond for such characters as . COMBINING GRAVE ACCENT (or any other combining codepoint) is not a good example of zero-width characters. Try "C-x 8 RET 200c RET" instead. Or FEFF or 1D173 or E007f or 1BCA0. > The character range \y200B-\u200F seems to be an exception here. When I try to > print one of these characters on a Linxu VT, it really prints nothing. That's not exception, that's the rule, actually, for true zero-width characters, not for accents. Accents exist to combine with preceding base character, and what you seem to describe means the Linux console is unable to do even Latin accents? > When I insert zero-width characters in Emacs, the diamonds representing the > characters are printed interspersed by the padding spaces added by emacs. The > cursor is left behind the extending line of characters as a type, because > Emacs thinks, that the zero-width characters really do not print anything, > even though they do. Is this with or without auto-composition-mode? > I believe that the one viable solution is to make char-width-table a terminal > local variable, so that there can be a simplified version for terminals that > don't understand Unicode correctly. That would affect much more than display, because Emacs consults that table for other purposes. We need something limited to display alone.