Vuze 5300 has encoding issues in its console user interface. After digging into the source, I found that the encoding issues are caused by org.gudy.azureus2.core3.logging.impl.LoggerImpl$RedirectorStream
.
-
package org.gudy.azureus2.core3.logging.impl;
-
-
public class LoggerImpl {
-
-
// ...
-
-
private class RedirectorStream extends OutputStream {
-
-
protected PrintStream ps;
-
protected StringBuffer buffer = new StringBuffer(1024);
-
protected LogIDs logID;
-
protected int logType;
-
-
protected RedirectorStream(PrintStream _ps, LogIDs _logID, int _logType) {
-
ps = _ps;
-
logType = _logType;
-
logID = _logID;
-
}
-
-
public void write(int data) {
-
char c = (char) data;
-
if(c == '\n') {
-
if(!bLogToStdOut) {
-
ps.println(buffer);
-
}
-
log(new LogEvent(logID, logType, buffer.toString()));
-
buffer.setLength(0);
-
} else if(c != '\r') {
-
buffer.append(c);
-
}
-
}
-
-
public void write(byte b[], int off, int len) {
-
for(int i = off; i < off + len; i++) {
-
int d = b[i];
-
if(d < 0)
-
d += 256;
-
write(d);
-
}
-
}
-
}
-
-
// ...
-
-
}
This is not a fix, but I just commented the relevant lines out. Of course the logging is broken, but I do not need it.
- Download Azureus2.jar.
Post new comment