[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:
Matthias Sohn 2017-05-13 18:58:21 +02:00
parent f1dd61f646
commit 69d5e89e99
1 changed files with 4 additions and 1 deletions

View File

@ -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)));
}
/**