Closed Bug 1648001 Opened 4 years ago Closed 4 years ago

Set forced character encoding via docshell

Categories

(MailNews Core :: Internationalization, task)

Tracking

(thunderbird_esr78 wontfix, thunderbird79 unaffected)

RESOLVED FIXED
Thunderbird 80.0
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird79 --- unaffected

People

(Reporter: hsivonen, Assigned: mkmelin)

References

Details

Attachments

(1 file)

Blocks: 1647301

editor/ is not really used anymore... but let's change it to avoid confusion

Syntax from bug 1648802 too to avoid merge conflicts later.

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Attachment #9160361 - Flags: review?(hsivonen)
Comment on attachment 9160361 [details] [diff] [review]
bug1648001_set_charsetdocshell.patch

Review of attachment 9160361 [details] [diff] [review]:
-----------------------------------------------------------------

::: mailnews/base/src/nsMsgPrintEngine.cpp
@@ +464,5 @@
>  
>  void nsMsgPrintEngine::InitializeDisplayCharset() {
>    // libmime always converts to UTF-8 (both HTML and XML)
>    if (mDocShell) {
> +    mDocShell->SetCharset("UTF-8"_ns);

Where is the handling of a `_ns` suffix defined?
Attachment #9160361 - Flags: review?(hsivonen) → review?

This is from bug 1648010, landed earlier today

Comment on attachment 9160361 [details] [diff] [review]
bug1648001_set_charsetdocshell.patch

(Resetting review request, bugzilla acting up)
Attachment #9160361 - Flags: review? → review?(hsivonen)
Comment on attachment 9160361 [details] [diff] [review]
bug1648001_set_charsetdocshell.patch

Review of attachment 9160361 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks.
Attachment #9160361 - Flags: review?(hsivonen) → review+
Target Milestone: --- → Thunderbird 80.0

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/15ac0c155ced
Set forced character encoding via docshell instead of via content viewer (content viewer will drop support for that). r=hsivonen DONTBUILD

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

Attachment

General

Created:
Updated:
Size: