[findBugs] Use UTF-8 to write to the error stream in TextProgressMonitor
Change-Id: Ic85db2043d6f673f268bf781917daad45d28f8cd Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
f1dd61f646
commit
69d5e89e99
|
@ -44,7 +44,10 @@
|
|||
|
||||
package org.eclipse.jgit.lib;
|
||||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.Writer;
|
||||
|
||||
|
@ -56,7 +59,7 @@ public class TextProgressMonitor extends BatchingProgressMonitor {
|
|||
|
||||
/** Initialize a new progress monitor. */
|
||||
public TextProgressMonitor() {
|
||||
this(new PrintWriter(System.err));
|
||||
this(new PrintWriter(new OutputStreamWriter(System.err, UTF_8)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue