Changed NS_ERROR_UENC_NOMAPPING to non serious error and return it to clients of nsISaveAsCharset, r=cata.

This commit is contained in:
nhotta%netscape.com 2000-03-28 00:36:41 +00:00
Родитель 590dd7628d
Коммит c06f0ae5bd
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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;
}