]> source.dussan.org Git - jgit.git/commitdiff
[findBugs] Use UTF-8 to write to the error stream in TextProgressMonitor 24/97024/3
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 13 May 2017 16:58:21 +0000 (18:58 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 15 May 2017 08:30:24 +0000 (10:30 +0200)
Change-Id: Ic85db2043d6f673f268bf781917daad45d28f8cd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/TextProgressMonitor.java

index 7675fccb69a32edadef492c3f0d760b09d17c3f7..c31c3c6939a1b2ef7f3f6f120c09c6560b63003c 100644 (file)
 
 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)));
        }
 
        /**