From 74789e77866d8aac7285149472c13a417b4aaa69 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Sat, 29 Sep 2018 15:01:02 +0900 Subject: [PATCH] SidebandInputStream: Specify charset when calling String.getBytes() Change-Id: I96c3f6b2ef3db9619bb3ae46dfbf8bcff3c1cbca Signed-off-by: David Pursehouse --- .../src/org/eclipse/jgit/transport/SideBandInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/SideBandInputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/SideBandInputStream.java index 90600cbb9..fde440128 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/SideBandInputStream.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/SideBandInputStream.java @@ -236,7 +236,7 @@ public class SideBandInputStream extends InputStream { messages.write(msg); if (out != null) - out.write(msg.getBytes()); + out.write(msg.getBytes(UTF_8)); } private void beginTask(int totalWorkUnits) {