ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49418] New: Add support for non-ASCII encoding to <junitreport> task
Date Thu, 10 Jun 2010 00:49:01 GMT

           Summary: Add support for non-ASCII encoding to <junitreport>
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: PatchAvailable, XSLTBug
          Severity: normal
          Priority: P2
         Component: Optional Tasks

The current implementation of <junitreport> has no support for JUnit testcases
with  non-ASCII strings in their assertion targets or system outputs.  When
non-ASCII strings are used, the rendered summary will have inappropriate
encoding specification and can be unreadable.

This (possible) bug is caused by the fact that the current implementation of
<junitreport> always specifies the encoding of the generated summary as
"US-ASCII".  This is hard-coded in the stylesheets, src/etc/junit-frames.xsl
and src/etc/junit-noframes.xsl.

Attached patch adds an optional attribute named 'encoding' to <junitreport>
task.  The default value for this attribute is set to "US-ASCII" so that we can
keep the current behaiviour if we don't use this option.  This patch is for Ant
rev. 952676 (

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

View raw message