From 3a2ea22ff281f43c9bf96548c4a45f2a79fd1907 Mon Sep 17 00:00:00 2001 From: David Inglis Date: Wed, 3 Mar 2004 20:45:47 +0000 Subject: [PATCH] fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=52555 --- .../eclipse/cdt/core/ConsoleOutputStream.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ConsoleOutputStream.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ConsoleOutputStream.java index 89521202ef0..a0bfa579317 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ConsoleOutputStream.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ConsoleOutputStream.java @@ -31,11 +31,17 @@ public class ConsoleOutputStream extends OutputStream { fBuffer.setLength (0); } - /** - * Implements buffered output at the lowest level - * @see OutputStream#write - */ public synchronized void write(int c) throws IOException { - fBuffer.append((char) c); + byte ascii[] = new byte[1]; + ascii[0] = (byte) c; + fBuffer.append(new String(ascii)); } + + public synchronized void write(byte[] b) throws IOException { + fBuffer.append(new String(b)); + } + + public synchronized void write(byte[] b, int off, int len) throws IOException { + fBuffer.append(new String(b, off, len)); + } }