Tab title truncated between surrogate pair

The place to report Pale Moon specific bugs on the Windows operating system.

Moderator: satrow

Keiji
Moongazer
Moongazer
Posts: 13
Joined: 2017-09-27, 19:31

Tab title truncated between surrogate pair

Unread post by Keiji » 2018-06-16, 12:48

This YouTube video title gets cut off with a "D83D" character just before the ... in the tab title:

Image

I was curious if it depends on display scaling, but apparently not - here's how it appears on 200% display scaling:

Image

I'm not sure how PM's string handling or abbreviation algorithm works but something isn't right here! :)

Using latest PM version - 27.9.3 (64-bit)
Last edited by Keiji on 2018-06-16, 12:49, edited 1 time in total.

yami_
Lunatic
Lunatic
Posts: 491
Joined: 2018-04-26, 11:05

Re: Tab title truncated between surrogate pair

Unread post by yami_ » 2018-06-16, 22:17

I can confirm it:
utf16_4byte.png
If the tab title must be cut after a 4 byte utf16 char, then only the high-surrogate code point of this char will be displayed.
cat came back from Berkeley waving flags -- rob pike

yami_
Lunatic
Lunatic
Posts: 491
Joined: 2018-04-26, 11:05

Re: Tab title truncated between surrogate pair

Unread post by yami_ » 2018-07-01, 10:13

I did some more tests today, here is what I discovered:
  • This issue affects every XUL element with crop attribute set
  • This seems to be fixed by UXP
cat came back from Berkeley waving flags -- rob pike

Keiji
Moongazer
Moongazer
Posts: 13
Joined: 2017-09-27, 19:31

Re: Tab title truncated between surrogate pair

Unread post by Keiji » 2018-07-06, 19:15

yami_ wrote:
  • This seems to be fixed by UXP
Ooh, excellent, so we can expect it to be fixed in the next major release then.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 23927
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Tab title truncated between surrogate pair

Unread post by Moonchild » 2018-07-06, 20:39

Keiji wrote:
yami_ wrote:
  • This seems to be fixed by UXP
Ooh, excellent, so we can expect it to be fixed in the next major release then.
indeed!
City of Heroes public server: https://www.moonshard.org/ -- Vote for it on cohservers.com

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Locked