Closed Bug 1606083 Opened 5 years ago Closed 5 years ago

Message list column truncation results in broken characters

Categories

(Thunderbird :: Folder and Message Lists, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 404856

People

(Reporter: lasdka88+mozbugs, Unassigned)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

I received an email with a U+1F550 CLOCK FACE ONE OCLOCK symbol (🕐) in the subject, with plain/alphanumeric text on either side. I noticed that in the message list the clock character was being displayed as a broken symbol instead - a square box with DB 3D inside - followed by an ellipsis (...) indicating that the text was being truncated due to the width of the Subject column.

Actual results:

I note that DB 3D are the first two bytes of the UTF-16BE representation of the U+1F550 character. It appears that the text truncation algorithm used for abbreviating the text in message list columns is truncating Unicode characters part-way through the byte sequence for a valid character, resulting in an invalid Unicode byte sequence.

If the message pane column is widened slightly such that the symbol is not truncated, it is displayed correctly.

Expected results:

The text abbreviation/truncation algorithm used in the message pane should never truncate a byte sequence mid-way through a valid Unicode character. Thus, the clock symbol should appear correctly, or not appear at all, but never appear as a broken character symbol.

Attachment #9117867 - Attachment description: broken.png → Example of the invalid displayed when the clock symbol is truncated
Attachment #9117867 - Attachment description: Example of the invalid displayed when the clock symbol is truncated → Example of the invalid character displayed when the clock symbol is truncated
Severity: normal → minor
Whiteboard: [dupme]
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Whiteboard: [dupme]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: