From: David Pursehouse Date: Sat, 29 Sep 2018 06:01:02 +0000 (+0900) Subject: SidebandInputStream: Specify charset when calling String.getBytes() X-Git-Tag: v5.2.0.201811281532-m3~129 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F89%2F130189%2F2;p=jgit.git SidebandInputStream: Specify charset when calling String.getBytes() Change-Id: I96c3f6b2ef3db9619bb3ae46dfbf8bcff3c1cbca Signed-off-by: David Pursehouse --- 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 90600cbb98..fde4401289 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) {