work around Jetty bug with non-ascii chars in Writer: SOLR-32

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@422768 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-07-17 17:29:50 +00:00
parent 10d32f1c7b
commit 1451c6ca7c
2 changed files with 11 additions and 4 deletions

View File

@ -57,6 +57,11 @@ Bug Fixes
4. WordDelimiterFilter sometimes lost token positionIncrement information
5. Fix reverse sorting for fields were sortMissingFirst=true
(Rob Staveley, yonik)
5. Worked around a Jetty bug that caused invalid XML responses for fields
containing non ASCII chars. (Bertrand Delacretaz via yonik, SOLR-32)
reverse sorting for fields were sortMissingFirst=true
(Rob Staveley, yonik)
Other Changes
1. Upgrade to Lucene 2.0 nightly build 2006-06-22, lucene SVN revision 416224,

View File

@ -159,8 +159,9 @@ public class XML {
}
if (subst != null) {
if (start<i) {
// out.write(str.substring(start,i));
out.write(str, start, i-start);
out.write(str.substring(start,i));
// write(str,off,len) causes problems for Jetty with chars > 127
//out.write(str, start, i-start);
// n+=i-start;
}
out.write(subst);
@ -172,8 +173,9 @@ public class XML {
out.write(str);
// n += str.length();
} else if (start<str.length()) {
// out.write(str.substring(start));
out.write(str, start, str.length()-start);
out.write(str.substring(start));
// write(str,off,len) causes problems for Jetty with chars > 127
// out.write(str, start, str.length()-start);
// n += str.length()-start;
}
// return n;