harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Strigun (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-45) Charset.isRegistered() method always return true
Date Wed, 25 Jan 2006 18:30:10 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-45?page=comments#action_12363988 ] 

Vladimir Strigun commented on HARMONY-45:

Patch is trivial (just check whether the name of charset starts with "x-"): 
<               return true;
>               return ! canonicalName.startsWith("x-") && ! canonicalName.startsWith("X-");

> Charset.isRegistered() method always return true
> ------------------------------------------------
>          Key: HARMONY-45
>          URL: http://issues.apache.org/jira/browse/HARMONY-45
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Vladimir Strigun
>     Priority: Trivial

> In accordance with J2SE specification method isRegistered() should return true only if
charset is registered with IANA.
> As well, "if a supported charset is not listed in the IANA registry then its canonical
name must begin with one of the strings "X-" or "x-"
> Testcase shows that even if charset name begin with "x-" isRegistered returns true; 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message