http://nagoya.apache.org/bugzilla/show_bug.cgi?id=392
*** shadow/392 Thu Feb 1 04:05:24 2001 --- shadow/392.tmp.9764 Thu Feb 1 07:21:55 2001 *************** *** 2,8 **** | copy task does a s/\r/\n/ when filtering is on BugRat Report#686 | +----------------------------------------------------------------------------+ | Bug #: 392 Product: Ant | ! | Status: UNCONFIRMED Version: 1.2 | | Resolution: Platform: All | | Severity: Normal OS/Version: All | | Priority: High Component: Core tasks | --- 2,8 ---- | copy task does a s/\r/\n/ when filtering is on BugRat Report#686 | +----------------------------------------------------------------------------+ | Bug #: 392 Product: Ant | ! | Status: NEW Version: 1.2 | | Resolution: Platform: All | | Severity: Normal OS/Version: All | | Priority: High Component: Core tasks | *************** *** 21,24 **** appended at end of file if none present, and so on...) fixCRLF does'nt help if the file to be copied is a ! binary file. --- 21,31 ---- appended at end of file if none present, and so on...) fixCRLF does'nt help if the file to be copied is a ! binary file. ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-02-01 07:21 ------- ! The problem boils down to the assumption that when you are copying files ! with the filter on, the file is text, not binary. The straight copy ! operation does a byte for byte copy using streams. The filter copy uses ! buffered readers and writers, reading and writing individual lines, appending ! the current platform's newline as it goes.
