ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56156] New: redirector corrupts binary output unless logError="true"
Date Tue, 18 Feb 2014 16:52:24 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56156

            Bug ID: 56156
           Summary: redirector corrupts binary output unless
                    logError="true"
           Product: Ant
           Version: 1.9.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: fileformat@gmail.com

Created attachment 31326
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31326&action=edit
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.

Mime
View raw message