lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gol...@apache.org
Subject cvs commit: jakarta-lucene/src/demo/org/apache/lucene/demo/html HTMLParser.java HTMLParser.jj
Date Thu, 02 Sep 2004 13:07:13 GMT
goller      2004/09/02 06:07:13

  Modified:    src/demo/org/apache/lucene/demo/html HTMLParser.java
                        HTMLParser.jj
  Log:
  fix for Bug 30844
  (supplied patch applied)
  
  Revision  Changes    Path
  1.8       +2 -2      jakarta-lucene/src/demo/org/apache/lucene/demo/html/HTMLParser.java
  
  Index: HTMLParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/demo/org/apache/lucene/demo/html/HTMLParser.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- HTMLParser.java	6 Aug 2004 19:26:16 -0000	1.7
  +++ HTMLParser.java	2 Sep 2004 13:07:12 -0000	1.8
  @@ -100,8 +100,8 @@
       if (pipeIn == null) {
         pipeInStream = new MyPipedInputStream();
         pipeOutStream = new PipedOutputStream(pipeInStream);
  -      pipeIn = new InputStreamReader(pipeInStream);
  -      pipeOut = new OutputStreamWriter(pipeOutStream);
  +      pipeIn = new InputStreamReader(pipeInStream, "UTF-16BE");
  +      pipeOut = new OutputStreamWriter(pipeOutStream, "UTF-16BE");
   
         Thread thread = new ParserThread(this);
         thread.start();                             // start parsing
  
  
  
  1.9       +2 -2      jakarta-lucene/src/demo/org/apache/lucene/demo/html/HTMLParser.jj
  
  Index: HTMLParser.jj
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/demo/org/apache/lucene/demo/html/HTMLParser.jj,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HTMLParser.jj	6 Aug 2004 19:26:16 -0000	1.8
  +++ HTMLParser.jj	2 Sep 2004 13:07:12 -0000	1.9
  @@ -164,8 +164,8 @@
       if (pipeIn == null) {
         pipeInStream = new MyPipedInputStream();
         pipeOutStream = new PipedOutputStream(pipeInStream);
  -      pipeIn = new InputStreamReader(pipeInStream);
  -      pipeOut = new OutputStreamWriter(pipeOutStream);
  +      pipeIn = new InputStreamReader(pipeInStream, "UTF-16BE");
  +      pipeOut = new OutputStreamWriter(pipeOutStream, "UTF-16BE");
   
         Thread thread = new ParserThread(this);
         thread.start();				  // start parsing
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message