Remove last remaining nsIScriptableUnicodeConverter usages across the Thunderbird codebase
Categories
(Thunderbird :: General, task)
Tracking
(thunderbird_esr115 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr115 | --- | wontfix |
People
(Reporter: darktrojan, Assigned: mkmelin)
References
(Blocks 1 open bug)
Details
(Keywords: leave-open)
Attachments
(4 files)
+++ This bug was initially created as a clone of Bug 1762335 +++
There's one last use of nsIScriptableUnicodeConverter, in EnigmailData. Most of the callers use UTF-8 as the charset, and can probably be replaced easily enough, but some don't. I don't know of another way to convert from an arbitrary charset at this point, so I'm leaving the function behind.
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Use standard means to get bytestring from utf-8 data.
var {EnigmailData} = ChromeUtils.import("chrome://openpgp/content/modules/data.jsm");
var {MailStringUtils} = ChromeUtils.import("resource:///modules/MailStringUtils.jsm");
var text = "blä";
var A = EnigmailData.convertFromUnicode(text, "utf-8")
var B = MailStringUtils.stringToByteString(text);
A + " vs " + B;
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/234c7fb296c4
Remove nsIScriptableUnicodeConverter usage from OpenPGP code. Part 1: UTF-8 to bytestring cases. r=john.bieling
Assignee | ||
Comment 3•11 months ago
|
||
Remove some non-standard string conversions and unneeded conversion methods.
var {EnigmailData} = ChromeUtils.import("chrome://openpgp/content/modules/data.jsm");
var {MailStringUtils} = ChromeUtils.import("resource:///modules/MailStringUtils.jsm");
var text = "blä";
var A = EnigmailData.getUnicodeData(text)
var B = new TextDecoder("ISO-8859-1").decode(MailStringUtils.byteStringToUint8Array(text));
A + " vs " + B;
Assignee | ||
Comment 4•11 months ago
|
||
Depends on D192368
Updated•11 months ago
|
Assignee | ||
Updated•11 months ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/228762f3ba68
Part 2: convert unconventional string conversions. r=kaie
https://hg.mozilla.org/comm-central/rev/ea487393c15f
Part 3: Remove EnigmailData.convertToUnicode usages. r=kaie
Assignee | ||
Comment 6•11 months ago
|
||
Don't needlessly modify the decrypted data and try to de-code/re-code it later.
Description
•