Browse Source

SidebandInputStream: Specify charset when calling String.getBytes()

Change-Id: I96c3f6b2ef3db9619bb3ae46dfbf8bcff3c1cbca
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.2
David Pursehouse 6 years ago
parent
commit
74789e7786
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/transport/SideBandInputStream.java

2
org.eclipse.jgit/src/org/eclipse/jgit/transport/SideBandInputStream.java

@ -236,7 +236,7 @@ public class SideBandInputStream extends InputStream {
messages.write(msg); messages.write(msg);
if (out != null) if (out != null)
out.write(msg.getBytes()); out.write(msg.getBytes(UTF_8));
} }
private void beginTask(int totalWorkUnits) { private void beginTask(int totalWorkUnits) {

Loading…
Cancel
Save