diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2017-05-13 18:58:21 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2017-05-15 10:30:24 +0200 |
commit | 69d5e89e99707119837eb1f025ee2c8d6d376996 (patch) | |
tree | 302b93adbc191f8d0b4ed3b06342ee00b91ca295 /org.eclipse.jgit | |
parent | f1dd61f646e1a217aeed58e2057b4a47c42077e9 (diff) | |
download | jgit-69d5e89e99707119837eb1f025ee2c8d6d376996.tar.gz jgit-69d5e89e99707119837eb1f025ee2c8d6d376996.zip |
[findBugs] Use UTF-8 to write to the error stream in TextProgressMonitor
Change-Id: Ic85db2043d6f673f268bf781917daad45d28f8cd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/TextProgressMonitor.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/TextProgressMonitor.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/TextProgressMonitor.java index 7675fccb69..c31c3c6939 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/TextProgressMonitor.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/TextProgressMonitor.java @@ -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))); } /** |