Bug 1648281 - [libreoffice][fix available] Junk character gets added when some emojis are inserted.
Summary: [libreoffice][fix available] Junk character gets added when some emojis are i...
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libreoffice
Version: 8.0
Hardware: All
OS: Linux
Target Milestone: rc
: 8.0
Assignee: Caolan McNamara
QA Contact: Desktop QE
Depends On:
TreeView+ depends on / blocked
Reported: 2018-11-09 10:19 UTC by Bhushan Barve
Modified: 2020-04-28 15:37 UTC (History)
1 user (show)

Fixed In Version: libreoffice-
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-04-28 15:37:33 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)
backport of render + various ibus and fontconfig tweaks to get it all to work (11.90 KB, patch)
2019-09-04 19:20 UTC, Caolan McNamara
no flags Details | Diff

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:1598 0 None None None 2020-04-28 15:37:41 UTC

Description Bhushan Barve 2018-11-09 10:19:20 UTC
Description of problem: Tried entering emojis in libreoffice applications. When user tries to enter an emoji, some garbage character gets added in case of some. Also sometimes, some emojis get added twice. Please refer attached screenshot.

Version-Release number of selected component (if applicable):
[test@localhost ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.0 Beta (Ootpa) - beta 1.3 build.

How reproducible:

Steps to Reproduce:
1. launch oowriter
2. press ctrl-shift-e followed by keyword, for e.g. boy
3. hit space twice 
4. hit enter

Actual results:
some garbage characters get added with emoji.

Expected results:
There should not be any garbage character or double insertion of emoji.

Additional info:

Comment 1 Caolan McNamara 2018-11-09 11:21:49 UTC
If I do it in gedit, and cut and paste "👦🏻" from there to writer it happens too, so its not any problem with the input method. Seems there really are two chars there, Unicode Character 'BOY' (U+1F466) followed by Unicode Character 'EMOJI MODIFIER FITZPATRICK TYPE-1-2' (U+1F3FB) so its on the render side of things

Comment 2 Caolan McNamara 2018-11-09 12:30:55 UTC
If I erase all emoji fonts except for Symbola, then I get the same bustage in gedit as well as LibreOffice, so a key problem seems to be font selection

Comment 3 Caolan McNamara 2018-11-14 11:28:29 UTC
The key font we want to use is a non-outline font so is rejected by LibreOffice as a candidate, so we'd have to relax that restriction and tweak things to bubble the font down to our cairo renderer. The good news is that if we can get it there, then it seems to render fine

Comment 5 Caolan McNamara 2019-09-04 19:20:59 UTC
Created attachment 1611638 [details]
backport of render + various ibus and fontconfig tweaks to get it all to work

Comment 7 Bill Sanford 2019-12-12 13:32:39 UTC
In the OP steps, I couldn't use CTRL-SHIFT-e, but I did use :<emoji name>: and as soon as I entered the second colon, I got the emoji and tried to reproduce the bug. I used writer and it looks like it is fixed.

Comment 9 errata-xmlrpc 2020-04-28 15:37:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.