[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexer InputStreamSource.java,1.3,1.4
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2005-02-15 00:41:32
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20299 Modified Files: InputStreamSource.java Log Message: Bug #1056438 Byte Order Mark Not a solution, just a better error message. Index: InputStreamSource.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/InputStreamSource.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** InputStreamSource.java 13 Feb 2005 22:45:47 -0000 1.3 --- InputStreamSource.java 15 Feb 2005 00:41:20 -0000 1.4 *************** *** 250,261 **** throw new EncodingChangeException ("character mismatch (new: " + new_chars[i] ! + " != old: " + buffer[i] ! + ") for encoding change from " + encoding + " to " + character_set + " at character offset " ! + offset); } } --- 250,265 ---- throw new EncodingChangeException ("character mismatch (new: " + new_chars[i] ! + " [0x" ! + Integer.toString (new_chars[i], 16) ! + "] != old: " ! + " [0x" ! + Integer.toString (buffer[i], 16) + buffer[i] ! + "]) for encoding change from " + encoding + " to " + character_set + " at character offset " ! + i); } } |