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 36104 da9e718d81a089661c7aeffe4dab41b516d86bdc
parent 36103 dbf07db55aa1485867ccbf0e975628684edde1f7
child 36105 15201c339dd09db23839d47533448f53c0d29f97
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
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");
   }
 }
 
 /**