-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
Extended Grapheme(e.g. graphemes containing zero width joiner) takes more width than it should to display in terminal #6323
Comments
U+1f469 is supposed to have emoji presentation by default as per the |
@kovidgoyal How is your comment related to my issue? I do want it to have emoji printed but it's taking up width of 2 characters in the terminal. |
Emojis are supposed to have width two. |
Can you try this? print('|' + b'\xf0\x9f\x91\xa9\xe2\x80\x8d\xf0\x9f\x9a\x92'.decode('utf-8') + '|') |
That's not a single codepoint. Thats two emojis joined with a zero width dup of #3810 |
Thank you for the clarification and sorry for the confusion in my description on the issue. |
Describe the bug
Grapheme takes too much width when displaying
To Reproduce
Steps to reproduce the behavior:
"π©βπ"
Screenshots
Environment details
Additional context
Can reproduce with no config.
The text was updated successfully, but these errors were encountered: