[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
FYI, Unicode 9 only adds support for some characters (e.g. U+1F920, 鸞, is correctly marked as wide starting from Unicode 9) but others require an update to Unicode 10 (e.g. U+1F92F, 勞) to be marked as wide. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gnome-terminal (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
> I believe it's the distro's responsibility to ship glib, glibc and vim so that all use the same Unicode version. Sounds right, and it's good to hear that there's progress on this front. I was afraid the situation was stagnant and it would be up to applications to fix it. > Or even better, but it takes more time and a heavy refactoring: There should be a single core Unicode library that glibc, glib, vim etc. all depend on. Unfortunately I find it unlikely to get implemented. Working a lot with Unicode myself, the thing is that the number of things a Unicode library could do is enormous and no application needs all of them. Many developers consider linking to, for example, ICU to be unacceptable bloat, and I don't blame them. > Also note that in gnome-terminals' Profile Preferences, under the Compatibility tab you can choose whether you want ambiguous width characters to be narrow or wide. I wouldn't want to set *all* ambiguous characters to be wide, like a Japanese OS -- that would break many more things. It's only the emoji that changed. Thanks for the responses. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
Just for the record: glibc has just upgraded to Unicode 9.0 in git (forthcoming 2.26 release): https://sourceware.org/bugzilla/show_bug.cgi?id=20313 ** Bug watch added: Sourceware.org Bugzilla #20313 https://sourceware.org/bugzilla/show_bug.cgi?id=20313 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
Also note that in gnome-terminals' Profile Preferences, under the Compatibility tab you can choose whether you want ambiguous width characters to be narrow or wide. If, apparently, your system has Unicode 8.0 (where these characters are still ambiguous) and vim handles them as wide, changing gnome-terminal to also treat them as wide might be a sensible workaround for you. (This, however, goes against glibc's database which is in turn used by ncurses etc.). -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
You've reported this bug against Ubuntu 16.04, whereas Unicode 9.0 was released in June 2016. The expected behavior in that distro is hence Unicode 8.0's. gnome-terminal takes the character width from glib (package: libglib2.0-0), which has surprisingly upgraded to Unicode 9.0 in a micro version, namely 2.50.1. Again surprisingly, Yakkety has released this version as an update (2.50.2), not in the original yakkety package (2.50.0), which again arguably shouldn't have happened. Most terminal emulators and apps take the character width from glibc (package: libc6), which has not updated to Unicode 9.0 yet (as of the just released version 2.25). At least Fedora, however, has already patched it forward: https://fedoraproject.org/wiki/Changes/Unicode_9.0. Maybe Ubuntu too, or is planning to, I don't know. Vim, as far as I know, has its own separate built-in database. gnome-terminal being different from most of the apps is already causing quite a bit of a headache, see e.g.: - https://bugzilla.gnome.org/show_bug.cgi?id=772812 (and follow the links from there as well to see some of the problems it causes), - https://bugzilla.gnome.org/show_bug.cgi?id=772890 (a recommendation for gnome-terminal to use glibc's database instead - no work has been done yet). vim using its own database adds yet another twist to the story. I don't know what version it ships. The bug you reported is indeed a valid and (presumably especially in yakkety (with updates) and zesty) a quite serious one. Strictly speaking, though, I don't think it's a gnome-terminal bug. I think it's a much higher level issue that should be brought up in some core developer mailing list. I believe it's the distro's responsibility to ship glib, glibc and vim so that all use the same Unicode version. (Or even better, but it takes more time and a heavy refactoring: There should be a single core Unicode library that glibc, glib, vim etc. all depend on. Unfortunately I find it unlikely to get implemented.) ** Bug watch added: GNOME Bug Tracker #772812 https://bugzilla.gnome.org/show_bug.cgi?id=772812 ** Bug watch added: GNOME Bug Tracker #772890 https://bugzilla.gnome.org/show_bug.cgi?id=772890 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
-- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
** Attachment added: "Editing text containing emoji in vim within gnome-terminal" https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+attachment/4819798/+files/terminal-emoji-glitch.png -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1665140] Re: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal
** Attachment added: "For comparison, the same text file being edited correctly in gedit" https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+attachment/4819800/+files/emoji-gedit.png -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1665140 Title: Emoji that should be wide, according to Unicode 9, display incorrectly in the terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1665140/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs