Bug 1851997 - Port bug 1851797 to Thunderbird - Remove nsIScriptableUnicodeConverter convertToByteArray and convertToInputStream. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D187669 --HG-- extra : rebase_source : 964648218784556858d0460d36c6c992b0aff1e8 extra : amend_source : 24bfea2c2574b730f7c5d2000e01c79fb7253a51
This commit is contained in:
Родитель
d10608d089
Коммит
b785b771b2
|
@ -250,8 +250,9 @@ export var Socket = {
|
|||
let converter = new ScriptableUnicodeConverter();
|
||||
converter.charset = aEncoding;
|
||||
try {
|
||||
let stream = converter.convertToInputStream(aString);
|
||||
this._outputStream.writeFrom(stream, stream.available());
|
||||
let buf = converter.ConvertFromUnicode(aString);
|
||||
buf += converter.Finish();
|
||||
this._outputStream.write(buf, buf.length);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче