You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by ry...@apache.org on 2007/07/03 11:13:29 UTC
svn commit: r552756 - in /lucene/solr/trunk: CHANGES.txt
src/java/org/apache/solr/common/util/ContentStreamBase.java
Author: ryan
Date: Tue Jul 3 02:13:28 2007
New Revision: 552756
URL: http://svn.apache.org/viewvc?view=rev&rev=552756
Log:
SOLR-286 - use utf-8 encoding for getBytes()
Modified:
lucene/solr/trunk/CHANGES.txt
lucene/solr/trunk/src/java/org/apache/solr/common/util/ContentStreamBase.java
Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?view=diff&rev=552756&r1=552755&r2=552756
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Tue Jul 3 02:13:28 2007
@@ -107,6 +107,9 @@
3. SOLR-283: autoCommit was not working after delete. (ryan)
+ 4. SOLR-286: ContentStreamBase was not using default encoding for getBytes()
+ (Toru Matsuzawa via ryan)
+
Other Changes
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the
build scripts to make two jars: apache-solr-1.3.jar and
Modified: lucene/solr/trunk/src/java/org/apache/solr/common/util/ContentStreamBase.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/common/util/ContentStreamBase.java?view=diff&rev=552756&r1=552755&r2=552756
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/common/util/ContentStreamBase.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/common/util/ContentStreamBase.java Tue Jul 3 02:13:28 2007
@@ -140,7 +140,7 @@
}
public InputStream getStream() throws IOException {
- return new ByteArrayInputStream( str.getBytes() );
+ return new ByteArrayInputStream( str.getBytes(DEFAULT_CHARSET) );
}
/**