Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 69262 invoked from network); 3 Mar 2006 11:09:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Mar 2006 11:09:53 -0000 Received: (qmail 66190 invoked by uid 500); 3 Mar 2006 11:10:37 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 66082 invoked by uid 500); 3 Mar 2006 11:10:36 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 66071 invoked by uid 99); 3 Mar 2006 11:10:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 03:10:36 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 32.97.182.143 is neither permitted nor denied by domain of paulex.yang@gmail.com) Received: from [32.97.182.143] (HELO e3.ny.us.ibm.com) (32.97.182.143) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 03:10:35 -0800 Received: from sd0109e.au.ibm.com (d23rh905.au.ibm.com [9.190.250.124]) by e3.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id k23BADA2015003 for ; Fri, 3 Mar 2006 06:10:13 -0500 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.250.237]) by sd0109e.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k23BDTtZ108650 for ; Fri, 3 Mar 2006 22:13:30 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11/8.13.3) with ESMTP id k23BABVi011372 for ; Fri, 3 Mar 2006 22:10:11 +1100 Received: from d23m0011.cn.ibm.com (d23m0011.cn.ibm.com [9.181.32.74]) by d23av04.au.ibm.com (8.12.11/8.12.11) with ESMTP id k23BAA5W011353 for ; Fri, 3 Mar 2006 22:10:11 +1100 Received: from [127.0.0.1] ([9.181.106.208]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.53HF294) with ESMTP id 2006030319100945-11097 ; Fri, 3 Mar 2006 19:10:09 +0800 Message-ID: <44082408.1070005@gmail.com> Date: Fri, 03 Mar 2006 19:10:00 +0800 From: Paulex Yang User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [jira] Commented: (HARMONY-156) InputStreamReader.getEncoding() and OutputStreamWriter.getEncoding() should return a historical charset name. References: <597888504.1141364523890.JavaMail.jira@ajax.apache.org> <4407E32A.5030500@gmail.com> <4407E438.4060304@gmail.com> <440817D0.8020802@pobox.com> In-Reply-To: <440817D0.8020802@pobox.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.53HF294 | January 28, 2005) at 03/03/2006 19:10:09, Serialize by Router on D23M0011/23/M/IBM(Release 6.53HF294 | January 28, 2005) at 03/03/2006 19:10:10, Serialize complete at 03/03/2006 19:10:10 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Geir Magnusson Jr wrote: > > > Paulex Yang wrote: >> Ah, thank you very much, but...I have some concerns whether we can >> look at the Sun's bug database. Any official ideas from Harmony >> PPMC? ;-) > > > I actually asked that question, and don't have an answer yet. Are > there any listed terms of use or such? I have no idea, that's why I have concern...unknown world is source of fear:) > > I'm sorry for my possible abruptness, I didn't intend to emphasis anything. > > > geir > >> >> karan malhi wrote: >>> You might want to look at this >>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6201170 >>> >>> Paulex Yang (JIRA) wrote: >>> >>>> [ >>>> http://issues.apache.org/jira/browse/HARMONY-156?page=comments#action_12368656 >>>> ] >>>> Paulex Yang commented on HARMONY-156: >>>> ------------------------------------- >>>> >>>> All the spec about Charset historical name is: >>>> " Some charsets have an historical name that is defined for >>>> compatibility with previous versions of the Java platform. A >>>> charset's historical name is either its canonical name or one of >>>> its aliases." >>>> >>>>> From this paragraph, I personally think the historical name is >>>>> specific to RI without any public standard:(, so the only way to >>>>> be compatible with RI is write testcases to get all historical >>>>> names of RI supported Charsets, and store them in an map. >>>> >>>> I can provide the patch of tests(to get all historical name) and >>>> the mapping implementation, but before that, I hope I can get some >>>> better idea from the mailing list to avoid this ugly solution:-\. >>>> >>>> >>>> >>>>> 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 >>>>> >>>> >>>> >>>> >>>>> 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. >>>>> >>>> >>>> >>>> >>> >> >> > -- Paulex Yang China Software Development Lab IBM