bug 227547 (follow-up): with nsFileSpec fixed, we don't need to call UnicodeNormalizer in mailnews for Mac OS X

This commit is contained in:
jshin%mailaps.org 2004-02-10 11:47:39 +00:00
Родитель 830c240dc2
Коммит dd9ac7be54
1 изменённых файлов: 1 добавлений и 16 удалений

Просмотреть файл

@ -39,9 +39,6 @@
#include "nsILocalFile.h"
#include "nsReadableUtils.h"
#include "nsNetUtil.h"
#ifdef XP_MACOSX
#include "nsIUnicodeNormalizer.h"
#endif
NS_IMPL_ISUPPORTS1(nsMsgAttachment, nsIMsgAttachment)
@ -65,20 +62,8 @@ NS_IMETHODIMP nsMsgAttachment::GetName(nsAString & aName)
NS_IMETHODIMP nsMsgAttachment::SetName(const nsAString & aName)
{
#ifndef XP_MACOSX
mName = aName;
#else
// Mac OS X filesystem uses NFD. When exporting names to the 'world',
// we have to convert NFD (decomposed Unicode) to NFC (precomopsed Unicode)
// because most other platforms expect that.
nsCOMPtr<nsIUnicodeNormalizer> normalizer (do_GetService(NS_UNICODE_NORMALIZER_CONTRACTID));
if (normalizer)
normalizer->NormalizeUnicodeNFC(aName, mName);
else
mName = aName;
#endif
return NS_OK;
return NS_OK;
}
/* attribute string url; */