Skip to content

Commit f5621f5

Browse files
author
s003958
committed
Force UTF-8 encoding on tar file
1 parent 62b2151 commit f5621f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/workflow/cps/replay/ReplayPipelineCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected ArrayList<SimpleEntry<String,String>> parseScripts(InputStream tarInpu
140140
outStream.write(data, 0, count);
141141
}
142142
outStream.flush();
143-
String scriptContent = new String(byteStream.toByteArray());
143+
String scriptContent = new String(byteStream.toString('UTF-8'));
144144

145145
SimpleEntry<String, String> entry = new SimpleEntry<>(scriptName, scriptContent);
146146
list.add(entry);

0 commit comments

Comments
 (0)