Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

telega-server: Handle \xfe0f as specified in the Unicode standard #346

Open
zevlg opened this issue Jan 21, 2022 · 0 comments
Open

telega-server: Handle \xfe0f as specified in the Unicode standard #346

zevlg opened this issue Jan 21, 2022 · 0 comments
Labels

Comments

@zevlg
Copy link
Owner

zevlg commented Jan 21, 2022

Telega Setup

OS: Ubuntu 20.04.1 LTS
Emacs: GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
Telega: telega v0.8.2 (TDLib v1.8.0) (telega-server v0.7.13)

Current Behavior

When emoji with \xfe0f code at the end is used in the text that is not listed in the telega-server emojis spec, then it is displayed incorrectly by telega. However, unicode specifies that \xfe0f could be used to emphasize that preceding character should be treated as emoji.

Steps to Reproduce

  1. Send "here is ☃\xfe0f" as message to Saved Messages
  2. Expect that "here is ☃️" is displayed in the Saved Messages

Possible Solution

When doing emoji lookup and lookup fails at current character being \xfe0f, treat previous char + \xfe0f as emoji

@zevlg zevlg added the bug label Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant