mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Set output behavior for unicode encoder to prevent the convesion to be aborted,
bug 118618, r=naving, sr=sspitzer.
This commit is contained in:
parent
534ed8ad12
commit
35fdaf8fd9
@ -357,6 +357,8 @@ NS_IMETHODIMP nsImportService::SystemStringFromUnicode(const PRUnichar *uniStr,
|
||||
|
||||
// get an unicode converter
|
||||
rv = ccm2->GetUnicodeEncoder(charsetAtom, &m_pEncoder);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
rv = m_pEncoder->SetOutputErrorBehavior(nsIUnicodeEncoder::kOnError_Replace, nsnull, '?');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user