ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49418] Add support for non-ASCII encoding to <junitreport> task
Date Fri, 11 Jun 2010 12:30:27 GMT

--- Comment #5 from Yusuke Matsubara <> 2010-06-11 08:30:25 EDT
(In reply to comment #3)
> Would seem simpler and more friendly to just set the encoding to UTF-8
> unconditionally.
> Anyway I cannot reproduce a problem on Ubuntu with Ant 1.8.2 dev;

Let me add more to comment #1 first.

The problem was actually in stderr outputs shown in the summary, not in
assertion results.  The procedure to reproduce the problem in stderr is as
follows.  After generating the test summary in the way described above, click 
"<none>" in the table bottom, "1" below "Errors" and "System.err » ".  The file
will contain "123 vs. �Œ    ", instead of "123 vs. 一二三", which is written in
the source code.

And commenting to Jess's solution, I don't think it would be sufficient to
hardcode UTF-8 instead of US-ASCII, because some Java environments have default
encodings that are not compatible to UTF-8.  For example, Sun's JDK for
Japanese Windows has MS932 as its default encoding.

I couldn't manage to make such a patch, but using the default encoding of the
system as that of the stylesheets for junitreport might be more reasonable.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
View raw message