Bug 1565894 - Replace Japanese with ISO-2022-JP in SetDocumentCharacterSet(). r=mkmelin a=jorgk
authorJorg K <jorgk@jorgk.com>
Sun, 14 Jul 2019 13:24:52 +0200
changeset 35241 da9e718d81a089661c7aeffe4dab41b516d86bdc
parent 35240 dbf07db55aa1485867ccbf0e975628684edde1f7
child 35242 15201c339dd09db23839d47533448f53c0d29f97
push id2469
push usermozilla@jorgk.com
push dateThu, 18 Jul 2019 18:56:51 +0000
treeherdercomm-beta@a80e22de5036 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, jorgk
bugs1565894
Bug 1565894 - Replace Japanese with ISO-2022-JP in SetDocumentCharacterSet(). r=mkmelin a=jorgk
mail/components/compose/content/MsgComposeCommands.js
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -3095,16 +3095,20 @@ function ComposeUnload() {
   if (msgWindow)
     msgWindow.closeWindow();
 
   ReleaseGlobalVariables();
 }
 
 function SetDocumentCharacterSet(aCharset) {
   if (gMsgCompose) {
+    // Replace generic Japanese with ISO-2022-JP.
+    if (aCharset == "Japanese") {
+      aCharset = "ISO-2022-JP";
+    }
     gMsgCompose.SetDocumentCharset(aCharset);
     updateEncodingInStatusBar();
   } else {
     dump("Compose has not been created!\n");
   }
 }
 
 /**