mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Added nsIUnicodeEncoder::SetOutputErrorBehavior to avoid the truncation of charse conversion, bug 92864, r=ftang, sr=sfraser.
This commit is contained in:
parent
a267dba9f7
commit
7f295b08de
@ -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)'?');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user