Closed
Bug 713519
Opened 13 years ago
Closed 13 years ago
getCharsetAlias should throw for unknown character sets
Categories
(Core :: Internationalization, defect)
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: asaf, Assigned: asaf)
References
Details
Attachments
(1 file)
(deleted),
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
throw Components.classes["@mozilla.org/charset-converter-manager;1"].getService(Components.interfaces.nsICharsetConverterManager).getCharsetAlias("no such thing");
Error: uncaught exception: no such thing
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #584321 -
Flags: review?(smontagu)
Assignee | ||
Updated•13 years ago
|
Assignee: smontagu → mano
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•13 years ago
|
||
Comment on attachment 584321 [details] [diff] [review]
patch
Cancelling review request as I'm not sure that the properties files covers everything.
Attachment #584321 -
Flags: review?(smontagu)
Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 584321 [details] [diff] [review]
patch
Oh well, it actually does. Sorry for the spam
Attachment #584321 -
Flags: review?(smontagu)
Comment 4•13 years ago
|
||
Comment on attachment 584321 [details] [diff] [review]
patch
Review of attachment 584321 [details] [diff] [review]:
-----------------------------------------------------------------
::: intl/uconv/tests/unit/test_bug713519.js
@@ +15,5 @@
> +
> + do_check_eq(svc.getCharsetTitle("windows-1255"), "Hebrew (Windows-1255)");
> + try {
> + svc.getCharsetTitle("no such thing");
> + do_throw("Calling getCharsetAlias with invalid value should throw.");
Change the second error message to "getCharsetTitle".
Attachment #584321 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in
before you can comment on or make changes to this bug.
Description
•