Inconsistent return values from nsIUnicodeDecoder

NEW
Assigned to

Status

()

Core
Internationalization
13 years ago
9 years ago

People

(Reporter: Biesinger, Assigned: smontagu)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

http://lxr.mozilla.org/seamonkey/source/intl/uconv/public/nsIUnicodeDecoder.h#64
has a (deprecated) NS_ERROR_ILLEGAL_INPUT define.

http://lxr.mozilla.org/seamonkey/source/intl/uconv/public/nsIUnicodeDecoder.h#146
says that that error will be thrown for illegal input.

However, only one decoder actually uses that error:
http://lxr.mozilla.org/seamonkey/search?string=error_illegal_in

I'm not sure what the others return, although the UTF-8 one uses
NS_ERROR_UNEXPECTED. It would be nice if the documentation was updated and if
the implementations were consistent.
QA Contact: amyy → i18n
You need to log in before you can comment on or make changes to this bug.