ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 56156] New: redirector corrupts binary output unless logError="true"
Date Tue, 18 Feb 2014 16:52:24 GMT

            Bug ID: 56156
           Summary: redirector corrupts binary output unless
           Product: Ant
           Version: 1.9.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks

Created attachment 31326
example build.xml with input and output files

We are using <apply> with a <redirector> to gzip some files.  The output is
corrupt unless I put logError="true" on either the apply or the redirector.  

There is no error output, so logError should not have any impact on the output.

The attachment includes
- a sample build.xml that does it both with and without logError
- a sample .txt file for input
- the two output files, one corrupted and one okay
- the hd output of the two output files
- the output from ant -debug
- the output from ant -diagnostics

Corruption happens even on small files.

It does not happen in version 1.8.2.

It appears to be something with line endings or text modes, since the corrupted
output has 0x0A converted to 0x0D, and 0x0D removed (as far as I can tell).  I
am running on Ubuntu 13.10 with bash and am not doing anything out of the
ordinary (as far as I know).

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

View raw message