mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 12:02:20 +00:00
External job monitoring was ignoring the possible encoding difference between Hudson and the remote machine that executed the job.
(<a href="http://www.nabble.com/windows%E3%81%AEhudson%E3%81%8B%E3%82%89ssh%E3%82%B9%E3%83%AC%E3%83%BC%E3%83%96%E3%82%92%E4%BD%BF%E3%81%86%E3%81%A8%E3%81%8D%E3%81%AE%E6%96%87%E5%AD%97%E3%82%B3%E3%83%BC%E3%83%89%E5%8F%96%E3%82%8A%E6%89%B1%E3%81%84%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6-td23583532.html">report</a>) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18197 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
ba46603dfd
commit
85a4bc0b6b
4 files changed
+5
-7
No files matched your search
@@ -37,6 +37,7 @@ import java.net.URL;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
/**
|
||||
* Entry point to Hudson from command line.
|
||||
@@ -107,7 +108,7 @@ public class Main {
|
||||
|
||||
Writer w = new OutputStreamWriter(os,"UTF-8");
|
||||
w.write("<?xml version='1.0' encoding='UTF-8'?>");
|
||||
w.write("<run><log encoding='hexBinary'>");
|
||||
w.write("<run><log encoding='hexBinary' content-encoding='"+Charset.defaultCharset().name()+"'>");
|
||||
w.flush();
|
||||
|
||||
// run the command
|
||||
|
||||
Reference in new issue
Block a user