Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 45244 invoked from network); 24 Mar 2011 18:06:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 18:06:45 -0000 Received: (qmail 63533 invoked by uid 500); 24 Mar 2011 18:06:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 63519 invoked by uid 500); 24 Mar 2011 18:06:45 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 63511 invoked by uid 99); 24 Mar 2011 18:06:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 18:06:45 +0000 X-ASF-Spam-Status: No, hits=-1999.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 18:06:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B410B4CBC4 for ; Thu, 24 Mar 2011 18:06:05 +0000 (UTC) Date: Thu, 24 Mar 2011 18:06:05 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <1373239518.8945.1300989965734.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1194039026.8773.1300986786587.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-2379) ByteBufferUtil#bytes(String) can produce undesired results for some characters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-2379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010806#comment-13010806 ] Jonathan Ellis commented on CASSANDRA-2379: ------------------------------------------- where are we still using default charset after CASSANDRA-2367? > ByteBufferUtil#bytes(String) can produce undesired results for some characters > ------------------------------------------------------------------------------ > > Key: CASSANDRA-2379 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2379 > Project: Cassandra > Issue Type: Bug > Reporter: Nate McCall > Attachments: 2379.txt > > > The difference between getBytes(java.nio.charset.Charset) vs. getBytes("[charsetname]") on some platforms (mac it seems) can be substantial. From the java.lang.String javadoc for the former: > This method always replaces malformed-input and unmappable-character sequences with this charset's default replacement byte array... > vs. the latter: > The behavior of this method when this string cannot be encoded in the default charset is unspecified. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira