Subject: bug#48125: 28.0.50; Display garbled by emoji variation sequence

From: Filipp Gunbin <[email-masked]>
Date: Tue, 04 May 2021 18:34:09 +0300

On 30/04/2021 20:57 +0300, Eli Zaretskii wrote:

>> From: Filipp Gunbin <[email-masked]>
>> Date: Fri, 30 Apr 2021 19:20:12 +0300
>> 
>> emacs -Q
>> 
>> Enter a base emoji char and composing variation selector right after it:
>> 
>> C-x 8 RET SOCCER BALL
>> C-x 8 RET VARIATION SELECTOR-16
>> 
>> Then, for example:
>> C-a a s d f
>> 
>> And the display becomes garbled.
>
> It isn't garbled here.
>
>> This is in tty emacs, built from latest master, on macOS.
>
> In TTY Emacs, the composition is handled by the terminal emulator.  So
> I guess this bug should be reported to them.

BTW, I see that emoji, as well as other characters from fonts different
from my selected one (Terminal has some font fallback logic), have
different width.  Is it ok for Emacs if a terminal emulator uses
different widths for different chars?