Closed Bug 1829502 Opened 3 years ago Closed 3 years ago

compose reply (and edit as new) Subject corrupting Unicode two-byte characters

Categories

(Thunderbird :: Message Compose Window, defect)

Thunderbird 114
x86_64
All
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird113 fixed)

VERIFIED FIXED
114 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird113 --- fixed

People

(Reporter: calum.mackay, Assigned: max.m)

References

(Regression)

Details

(Keywords: regression)

Attachments

(5 files)

When replying to a message that contains a two-byte Unicode character in the Subject, the character is corrupted in the compose window's Subject.

Note that body text is not affected.

This affects: Edit as New, Reply

But does not affect: Forward, nor composing a new message and adding that character to the Subject

The character used in my tests is:

U+2014 EM DASH
UTF-8: e2 80 94 UTF-16BE: 2014 Decimal: — Octal: \020024

Category: Pd (Punctuation, Dash); East Asian width: A (ambiguous)
Unicode block: 2000..206F; General Punctuation
Bidi: ON (Other Neutrals)

In the attached screenshots:

TB 1 Subject and body of original email, containing EM DASH

TB 2 Edit as New compose window, showing corrupted char in Subject, but OK in body

TB 3 email from TB 2, after delivery; corruption still there

TB 4 message pane entries for original, and TB 2 emails

The problem first appeared in 0418:

good 114.0a1 (2023-04-17) (64-bit)

bad 114.0a1 (2023-04-18) (64-bit)

MacOS Ventura 13.3.1

Attached image TB 1.png
Attached image TB 2.png
Attached image TB 3.png
Attached image TB 4.png

The screenshots were taken whilst composing in plain text.

I thought that might explain why the body text was not affected. But no, the same thing happens when composing in HTML: Subject corrupted, HTML body fine.

Do you think it is a recent regression?

Flags: needinfo?(calum.mackay)
Keywords: intl

Yes, as I said above: The problem first appeared in 0418 😊

Flags: needinfo?(calum.mackay)

I bet you have (PGP?) encryption enabled?

I just noticed that when I reply to an email with an encrypted subject, in the reply the umlauts are destroyed.
When I reply to an unencrypted e-mail everything is still OK.

And yes, I can also confirm the bug with the draft folder.
If I disable: Account Settings -> Ent-To-End Encryption
=>[ ] Store draft messages in encrypted format

this is fine again.

I can't say when the bug started to appear. But 18.04. would indicate Bug 1819499.

Flags: needinfo?(mkmelin+mozilla)
Keywords: regression
Regressed by: 1819499
OS: macOS → All
Version: Trunk → Thunderbird 114

Thanks.

I do have PGP enabled, but the email to which I'm replying was not encrypted, nor is the email I compose. They are both signed, however.

Attached patch 1829502.patchSplinter Review
Attachment #9329880 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9329880 [details] [diff] [review] 1829502.patch Review of attachment 9329880 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks! r=mkmelin
Attachment #9329880 - Flags: review?(mkmelin+mozilla) → review+
Assignee: nobody → max.m
Status: NEW → ASSIGNED
Flags: needinfo?(mkmelin+mozilla)
Keywords: intlcheckin-needed-tb
Target Milestone: --- → 114 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/fca355829b44
Follow-up to bug 1819499: Don't treat subject from DB header as raw UTF-8. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

confirmed fix for me in: 114.0a1 (2023-04-24) (64-bit)

thanks very much indeed.

Status: RESOLVED → VERIFIED

Comment on attachment 9329880 [details] [diff] [review]
1829502.patch

[Approval Request Comment]
Regression fix for bug 1819499

Attachment #9329880 - Flags: approval-comm-beta?

Comment on attachment 9329880 [details] [diff] [review]
1829502.patch

[Triage Comment]
Approved for beta

Attachment #9329880 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: