-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
When running an external job through "java jar .../hudson-core*.jar jobname
job.sh", I get a StringIndexOutOfBoundsException if the external program
outputs non-ASCII characters:
Exception in thread "/backup/rundar asimov asimov-home: stdout copier"
java.lang.StringIndexOutOfBoundsException: String index out of range: -3
at java.lang.String.charAt(String.java:686)
at hudson.util.EncodingStream.write(EncodingStream.java:45)
at java.io.FilterOutputStream.write(FilterOutputStream.java:108)
at hudson.util.DualOutputStream.write(DualOutputStream.java:54)
at hudson.util.StreamCopyThread.run(StreamCopyThread.java:58)
I assume this is caused by the following code in EncodingStream.java (b will
probably be larger than 255 for non-ASCII characters):
public void write(int b) throws IOException
{ out.write(chars.charAt(b/16)); out.write(chars.charAt(b%16)); }private static final String chars = "0123456789ABCDEF";
- is duplicated by
-
JENKINS-3362 console-output external jobs chokes on Umlaut
- Closed