rem: var charsetAtom = gCharsetConvertManager.GetCharsetAtom(charset); var encoderList = gCharsetConvertManager.GetEncoderList(); var n = encoderList.Count(); 
add: var charsetAlias = gCharsetConvertManager.getCharsetAlias(charset); var encoderList = gCharsetConvertManager.getEncoderList(); 
context: function GetCharsetUIString(){  var charset = gMsgCompose.compFields.characterSet;  if (gSendDefaultCharset == null) {    gSendDefaultCharset = gMsgCompose.compFields.defaultCharacterSet;  }  charset = charset.toUpperCase();  if (charset == "US-ASCII")    charset = "ISO-8859-1";  if (charset != gSendDefaultCharset) {    if (gCharsetTitle == null) {      try {        // check if we have a converter for this charset        var charsetAtom = gCharsetConvertManager.GetCharsetAtom(charset);        var encoderList = gCharsetConvertManager.GetEncoderList();        var n = encoderList.Count();        var found = false;        for (var i = 0; i < n; i++)        {          if (charsetAtom == encoderList.GetElementAt(i))          {            found = true;            break;          }        }        if (!found)        {          dump("no charset converter available for " +  charset + " default charset is used instead\n");          // set to default charset, no need to show it in the window title          gMsgCompose.compFields.characterSet = gSendDefaultCharset;          return "";        }        // get a localized string        gCharsetTitle = gCharsetConvertManager.GetCharsetTitle(charsetAtom);      }      catch (ex) {        dump("failed to get a charset title of " + charset + "!\n");        gCharsetTitle = charset; // just show the charset itself      }    }    return " - " + gCharsetTitle;  }  return "";}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/15bb152801108b4a5b2c80854434f035c1e96760/MsgComposeCommands.js/buggy/mail/components/compose/content/MsgComposeCommands.js