From dev-return-39843-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Thu Sep 23 07:39:49 2010 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 34619 invoked from network); 23 Sep 2010 07:39:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Sep 2010 07:39:49 -0000 Received: (qmail 91496 invoked by uid 500); 23 Sep 2010 07:39:49 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 91040 invoked by uid 500); 23 Sep 2010 07:39:46 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 91031 invoked by uid 99); 23 Sep 2010 07:39:44 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 07:39:44 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 194.196.100.163 is neither permitted nor denied by domain of mark.hindess@googlemail.com) Received: from [194.196.100.163] (HELO mtagate3.uk.ibm.com) (194.196.100.163) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Sep 2010 07:39:19 +0000 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id o8N7cx7l026786 for ; Thu, 23 Sep 2010 07:38:59 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8N7cxfu3706884 for ; Thu, 23 Sep 2010 08:38:59 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o8N7cwJ6001947 for ; Thu, 23 Sep 2010 08:38:58 +0100 Received: from anaheim.local (dhcp-9-20-183-73.hursley.ibm.com [9.20.183.73]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id o8N7cwWC001937 for ; Thu, 23 Sep 2010 08:38:58 +0100 Message-Id: <201009230738.o8N7cwWC001937@d06av01.portsmouth.uk.ibm.com> X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-18) with nmh-1.3 From: "Mark Hindess" To: "Apache Harmony Dev List" Subject: [classlib] Charset.toString() compatibility to aid poor code? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 23 Sep 2010 08:38:58 +0100 X-Virus-Checked: Checked by ClamAV on apache.org I've just seen some poor code for a simple HTTP server doing: "Content-Type: text/html; charset=" + charset which on the RI gives the expected: Content-Type: text/html; charset=ISO-8859-1 but on Harmony gives: Content-Type: text/html; charset=Charset[ISO-8859-1] which is then incorrect/unhelpful at the HTTP client end. Perhaps we should just make Charset.toString() return just Charset.canonicalName without the prefix? If there are no objections then I'll change this later. Regards, Mark.