harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-156) InputStreamReader.getEncoding() and OutputStreamWriter.getEncoding() should return a historical charset name.
Date Wed, 08 Mar 2006 03:13:41 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-156?page=all ]

Paulex Yang updated HARMONY-156:
--------------------------------

    Attachment: patch_156.txt
                patch_156_test.txt

As no one has better idea than my prior proposal, i.e., save the mapping between historical
name and canonical name, I created the patch for this solution. The affected package is luni/java.io.


> InputStreamReader.getEncoding() and OutputStreamWriter.getEncoding() should return a
historical charset name.
> -------------------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-156
>          URL: http://issues.apache.org/jira/browse/HARMONY-156
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Dmitry M. Kononov
>     Priority: Minor
>  Attachments: patch_156.txt, patch_156_test.txt
>
> InputStreamReader.getEncoding() and OutputStreamWriter.getEncoding() return canonical
names on the given charsets instead of historical ones. For example,
>     new OutputStreamWriter(new ByteArrayOutputStream(), "UTF-16BE").getEncoding()
> has to return the "UnicodeBigUnmarked" string as a historical name. But it returns "UTF-16BE",
that is a canonical name.
> The java spec reads the historical names as the charset names defined for compatibility
with previous versions of the Java platform.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message