Closed Bug 1737245 Opened 4 years ago Closed 3 years ago

Mojibake after forwarding message with defective charset

Categories

(Thunderbird :: Message Compose Window, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr102 wontfix)

RESOLVED FIXED
115 Branch
Tracking Status
thunderbird_esr102 --- wontfix

People

(Reporter: rachel, Assigned: mkmelin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

The attached message is encoded in windows-1250 (central European) and is missing the charset information from the headers. It is displayed correctly, answering also works. Forward or "Edit as new message" (same code path, different to "reply") shows Mojibake, that is UTF-8 replacement characters <?>. It would be desirable to handle that better. In TB 78 it was handled better, however, TB 78 also didn't display the message correctly, instead it displayed some Cyrillic characters.

Alice, could you see where the behaviour changed here. STR:
Import the message into a local folder (drag and drop). Forward.

What you get in TB 78 is different to TB 91. When did that change?

Flags: needinfo?(alice0775)
Keywords: regression

Sorry, "It is displayed correctly" is not true for TB 91, there the <?> are also displayed. It is only displayed correctly with the patch from bug 1734361 which corrects the regression mentioned in bug 1734361 comment #13.

(In reply to Rachel Martin from comment #2)

Sorry, "It is displayed correctly" is not true for TB 91, there the <?> are also displayed. It is only displayed correctly with the patch from bug 1734361 which corrects the regression mentioned in bug 1734361 comment #13.

So what should I do?

Flags: needinfo?(alice0775)

So what should I do?

Please find the change of behaviour when forwarding, STR in comment #1. Compare TB 78 to TB 91 to see what the difference. Maybe it's the same as in bug 1734361 comment #9.

Flags: needinfo?(alice0775)

Thanks Alice, much appreciated, very helpful. In general, knowing where the regression came from frequently allows finding a solution quicker.

Regressed by: 1671880
Type: enhancement → defect

To test this, import the attached message, view it (displays fine), then forward it.

Attachment #9331204 - Flags: review?(mkmelin+mozilla)
Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Comment on attachment 9331204 [details] [diff] [review]
1737245-forward-charset-detect.patch

Looks good, I folded it the patch to test that case in phabricator.

Attachment #9331204 - Attachment is obsolete: true
Attachment #9331204 - Flags: review?(mkmelin+mozilla)

Thanks for adding the test. The non-test part is based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1737245-forward-charset-detect.patch, the 91 version was different.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/7784caaf3422
Add charset detection also for the 'forward/edit as new' codepath. r=leftmostcat

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: