зеркало из https://github.com/mozilla/pjs.git
Changed NS_ERROR_UENC_NOMAPPING to non serious error and return it to clients of nsISaveAsCharset, r=cata.
This commit is contained in:
Родитель
8af63be58b
Коммит
dd5c2ad922
|
@ -48,7 +48,7 @@ static NS_DEFINE_IID(kIUnicharEncoderIID, NS_IUNICHARENCODER_IID);
|
|||
NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_UCONV, 0x22)
|
||||
|
||||
#define NS_ERROR_UENC_NOMAPPING \
|
||||
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_UCONV, 0x23)
|
||||
NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_UCONV, 0x23)
|
||||
|
||||
|
||||
#define NS_UNICODEENCODER_PROGID_BASE "component://netscape/intl/unicode/encoder?charset="
|
||||
|
|
|
@ -246,7 +246,7 @@ nsSaveAsCharset::DoCharsetConversion(const PRUnichar *inString, char **outString
|
|||
*outString = dstPtr; // set the result string
|
||||
|
||||
// set error code so that the caller can do own fall back
|
||||
if ((NS_ERROR_UENC_NOMAPPING == saveResult) && ATTR_NO_FALLBACK(mAttribute)) {
|
||||
if (NS_ERROR_UENC_NOMAPPING == saveResult) {
|
||||
rv = NS_ERROR_UENC_NOMAPPING;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче