Browse Source

[findBugs] Use UTF-8 to write to the error stream in TextProgressMonitor

Change-Id: Ic85db2043d6f673f268bf781917daad45d28f8cd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.8
Matthias Sohn 8 years ago
parent
commit
69d5e89e99
  1. 5
      org.eclipse.jgit/src/org/eclipse/jgit/lib/TextProgressMonitor.java

5
org.eclipse.jgit/src/org/eclipse/jgit/lib/TextProgressMonitor.java

@ -44,7 +44,10 @@
package org.eclipse.jgit.lib; package org.eclipse.jgit.lib;
import static java.nio.charset.StandardCharsets.UTF_8;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.io.Writer; import java.io.Writer;
@ -56,7 +59,7 @@ public class TextProgressMonitor extends BatchingProgressMonitor {
/** Initialize a new progress monitor. */ /** Initialize a new progress monitor. */
public TextProgressMonitor() { public TextProgressMonitor() {
this(new PrintWriter(System.err)); this(new PrintWriter(new OutputStreamWriter(System.err, UTF_8)));
} }
/** /**

Loading…
Cancel
Save