NS_ERROR_UENC_NOMAPPING should not be used for nsIUnicodeDecoder

VERIFIED FIXED

Status

()

Core
Internationalization
VERIFIED FIXED
17 years ago
16 years ago

People

(Reporter: nhottanscp, Assigned: Frank Tang)

Tracking

({intl})

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
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.

Comment 1

17 years ago
Should IQA be involved in this? if so, could you please provide the test cases?
Keywords: intl

Comment 2

17 years ago
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
(Assignee)

Comment 3

17 years ago
this was fixed. 
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED

Comment 4

16 years ago
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.