Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 17974 invoked from network); 14 Jul 2008 08:54:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 08:54:25 -0000 Received: (qmail 12126 invoked by uid 500); 14 Jul 2008 08:54:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 12064 invoked by uid 500); 14 Jul 2008 08:54:24 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 12053 invoked by uid 99); 14 Jul 2008 08:54:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 01:54:24 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 08:53:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0275E234C164 for ; Mon, 14 Jul 2008 01:53:34 -0700 (PDT) Message-ID: <138021149.1216025614008.JavaMail.jira@brutus> Date: Mon, 14 Jul 2008 01:53:34 -0700 (PDT) From: "Benjamin Bentmann (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (CODEC-73) Make string2byte conversions indepedent of platform default encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Make string2byte conversions indepedent of platform default encoding -------------------------------------------------------------------- Key: CODEC-73 URL: https://issues.apache.org/jira/browse/CODEC-73 Project: Commons Codec Issue Type: Bug Affects Versions: 1.3 Environment: any platform whose default encoding is not a superset of ASCII, e.g. UTF-16 or EBCDIC Reporter: Benjamin Bentmann Attachments: CODEC-73.patch Both the library itself and many of its tests are utterly dependent on the JVM's default charset. For example, {{DigestUtils}} calls {{String.getBytes()}} to convert an input string to a byte array, happily delivering different digests for the same input string if run on different platforms. If you want to try out the havor yourself, just run the unit tests in a JVM with UTF-16, e.g. by adding the line {code:xml} -Dfile.encoding=UTF-16 {code} to the configuration of the Surefire Plugin in the POM. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.