Commit c0864e93 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed double byte char fix to accept \t heart beats.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9897 b35dd754-fafc-0310-a699-88a17e54d16e
parent 19c17f64
...@@ -156,8 +156,11 @@ class XMLLightweightParser { ...@@ -156,8 +156,11 @@ class XMLLightweightParser {
// Verify if the last received byte is an incomplete double byte character // Verify if the last received byte is an incomplete double byte character
char lastChar = buf[readByte-1]; char lastChar = buf[readByte-1];
if (Character.isISOControl(lastChar) || lastChar >= 0xfff0) { //if (Character.isISOControl(lastChar) || lastChar >= 0xfff0) {
Log.debug("Waiting to get complete char: " + String.valueOf(buf)); if (lastChar >= 0xfff0) {
if (Log.isDebugEnabled()) {
Log.debug("Waiting to get complete char: " + String.valueOf(buf));
}
// Rewind the position one place so the last byte stays in the buffer // Rewind the position one place so the last byte stays in the buffer
// The missing byte should arrive in the next iteration. Once we have both // The missing byte should arrive in the next iteration. Once we have both
// of bytes we will have the correct character // of bytes we will have the correct character
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment