FS#74736 - [electron] [chromium] doesn't display the trans flag emoji 🏳️‍⚧️ properly

Attached to Project: Community Packages
Opened by Faye (faye) - Saturday, 14 May 2022, 06:54 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Felix Yan (felixonmars)
Bruno Pagani (ArchangeGabriel)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

[electron] doesn't display the trans flag emoji 🏳️‍⚧️ properly; it gets displayed as a white flag 🏳️ followed by a trans symbol ⚧️, as though it's ignoring the ZWJ.

Additional info:

This affects at least [electron14] (14.2.9) through [electron] (18.2.1), I haven't fully checked how far back it goes.

The upstream Electron 18.2.1 from https://github.com/electron/electron/releases/tag/v18.2.1 doesn't have this bug.

Other reports of this issue:
https://github.com/electron/electron/issues/31251
https://github.com/vector-im/element-web/issues/16884

Steps to reproduce:

1. Install Electron and an emoji font: `pacman -S electron noto-fonts-emoji`
2. Create a test file containing the trans flag emoji: `echo 🏳️‍⚧️ > test.txt`
3. Open the test file in Electron: `electron file://$(pwd)/test.txt`
4. The Electron window shows "🏳️ ⚧️"

You can also input a 🏳️‍⚧️ into any Arch-packaged Electron app to observe the broken behavior, such as Element Desktop, Code, etc.

Other flag emoji such as 🏳️‍🌈 are displayed correctly if you perform the same steps, it seems to just be the trans flag.
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:03 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/electron/issues/1
Comment by Faye (faye) - Monday, 16 May 2022, 03:18 GMT
On further inspection, Arch's [chromium] 101.0.4951.64 has the same bug, same steps to reproduce. The upstream build of Chromium 101.0.4951.0 from https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F982481%2Fchrome-linux.zip?generation=1647559751806495&alt=media doesn't have the bug.
Comment by Toolybird (Toolybird) - Wednesday, 13 July 2022, 05:52 GMT
It looks fine in Firefox but I definitely see the bug in latest Chromium (103.0.5060.53). Will assign to electron and chromium PM's.
Comment by Martin Rys (C0rn3j) - Friday, 15 September 2023, 08:19 GMT
Alternatively a more convenient way way to reproduce is to just open the wikipedia page of the flag, which uses the emoji in the page https://en.wikipedia.org/wiki/Transgender_flag#Usage

Surprisingly, it renders in hover labels, when opening https://bugs.archlinux.org/index.php?string=74736 and hovering over this issue's summary, the flag shows up just fine.

Loading...