[Htmlparser-cvs] htmlparser/src/org/htmlparser/scanners ScriptDecoder.java,1.2,1.3
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2005-03-13 14:51:56
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16205/scanners Modified Files: ScriptDecoder.java Log Message: Bug #1121401 No Parsing with yahoo! By default nio.charset.CharsetDecoder replaces characters it cannot represent in the current encoding with zero, which was the value returned by the page when the Stream reached EOF. This changes the Page return value to (char)Source.EOF (-1) when the end of stream is encountered. Index: ScriptDecoder.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/ScriptDecoder.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ScriptDecoder.java 17 Jul 2004 13:45:03 -0000 1.2 --- ScriptDecoder.java 13 Mar 2005 14:51:45 -0000 1.3 *************** *** 309,313 **** input_character = page.getCharacter (cursor); character = (char)input_character; ! if (0 == input_character) { if ( (STATE_INITIAL != state) --- 309,313 ---- input_character = page.getCharacter (cursor); character = (char)input_character; ! if (Page.EOF == input_character) { if ( (STATE_INITIAL != state) |