rem: attachment.name = gMsgCompose.AttachmentPrettyName(attachment.url, attachment.urlCharset); 
add: attachment.name = gMsgCompose.AttachmentPrettyName(attachment.url, null); 
context: function AddAttachment(attachment){  if (attachment && attachment.url)  {    var bucket = document.getElementById("attachmentBucket");    var item = document.createElement("listitem");    if (!attachment.name)      attachment.name = gMsgCompose.AttachmentPrettyName(attachment.url, attachment.urlCharset);    // for security reasons, don't allow *-message:// uris to leak out    // we don't want to reveal the .slt path (for mailbox://), or the username or hostname    var messagePrefix = /^mailbox-message:|^imap-message:|^news-message:/i;    if (messagePrefix.test(attachment.name))      attachment.name = sComposeMsgsBundle.getString("messageAttachmentSafeName");    else {      // for security reasons, don't allow mail protocol uris to leak out      // we don't want to reveal the .slt path (for mailbox://), or the username or hostname      var mailProtocol = /^mailbox:|^imap:|^s?news:/i;      if (mailProtocol.test(attachment.name))        attachment.name = sComposeMsgsBundle.getString("partAttachmentSafeName");    }    item.setAttribute("label", attachment.name);    //use for display only    item.attachment = attachment;   //full attachment object stored here    try {      item.setAttribute("tooltiptext", decodeURI(attachment.url));    } catch(e) {      item.setAttribute("tooltiptext", attachment.url);    }    item.setAttribute("class", "listitem-iconic");    item.setAttribute("image", "moz-icon:" + attachment.url);    bucket.appendChild(item);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/f6f88453213289d63dd2cbe0492d3307c2b48c5e/MsgComposeCommands.js/buggy/mail/components/compose/content/MsgComposeCommands.js