Added nsIUnicodeEncoder::SetOutputErrorBehavior to avoid the truncation of charse conversion, bug 92864, r=ftang, sr=sfraser.

This commit is contained in:
nhotta%netscape.com 2001-10-11 18:36:39 +00:00
parent a267dba9f7
commit 7f295b08de

View File

@ -417,6 +417,9 @@ void nsMacControl::StringToStr255(const nsString& aText, Str255& aStr255)
do_GetService(kCharsetConverterManagerCID, &rv);
if (NS_SUCCEEDED(rv)) {
rv = ccm->GetUnicodeEncoder(&fileSystemCharset, &mUnicodeEncoder);
if (NS_SUCCEEDED(rv)) {
rv = mUnicodeEncoder->SetOutputErrorBehavior(nsIUnicodeEncoder::kOnError_Replace, nsnull, (PRUnichar)'?');
}
}
}