Closed Bug 129150 Opened 23 years ago Closed 22 years ago

NS_ERROR_UENC_NOMAPPING should not be used for nsIUnicodeDecoder

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: nhottanscp, Assigned: ftang)

Details

(Keywords: intl)

NS_ERROR_UENC_NOMAPPING is an error code for nsIUnicodeEncoder but it is used as
a return value of ISO-2022-JP decoder,
http://lxr.mozilla.org/seamonkey/source/intl/uconv/ucvja/nsJapaneseToUnicode.cpp#970

The error for that case is invalid character code for the specified charset
instead of cannot map to Unicode. I think we can return
NS_ERROR_UDEC_ILLEGALINPUT instead.
Should IQA be involved in this? if so, could you please provide the test cases?
Keywords: intl
Switching QA contact to ftang.  Frank, can you please handle this within 
development and re-assign further as you see is appropriate?  Feel free and 
re-assign back to IQA once you have a test case for IQA.  Thanks.
QA Contact: ruixu → ftang
this was fixed. 
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verifed.
-return NS_ERROR_UENC_NOMAPPING;                                              
+return NS_ERROR_UNEXPECTED;                                                  

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.