rem: if (compFieldsCharset.toUpperCase() == "US-ASCII") 
add: compFieldsCharset = compFieldsCharset.toUpperCase(); if (compFieldsCharset == "US-ASCII") 
context: function InitCharsetMenuCheckMark(){  // dump("msgCompose.compFields is " + msgCompose.compFields.GetCharacterSet() + "\n");  // return if the charset is already set explitily  if (currentMailSendCharset != null) {    dump("already set to " + currentMailSendCharset + "\n");    return;  }  var menuitem;   // try to get preferences service  var prefs = null;  try {    prefs = Components.classes['component://netscape/preferences'];    prefs = prefs.getService();    prefs = prefs.QueryInterface(Components.interfaces.nsIPref);  }  catch (ex) {    dump("failed to get prefs service!\n");    prefs = null;  }  var send_default_charset = prefs.CopyCharPref("mailnews.send_default_charset");  var compFieldsCharset = msgCompose.compFields.GetCharacterSet();  if (compFieldsCharset.toUpperCase() == "US-ASCII")    compFieldsCharset = "ISO-8859-1";  menuitem = document.getElementById(compFieldsCharset);  // charset may have been set implicitly in case of reply/forward  if (send_default_charset.toUpperCase() != compFieldsCharset.toUpperCase()) {    if (menuitem && menuitem.getAttribute('checked') == false) {      menuitem.setAttribute('checked', 'true');      return;    }  }   menuitem = document.getElementById(send_default_charset);  if (menuitem)     menuitem.setAttribute('checked', 'true');   // Set a document charset to a default mail send charset.  SetDocumentCharacterSet(send_default_charset);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/39aee41f8097b4ebd6d169074fd287814cc796ee/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js