You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/10/04 23:47:33 UTC
DO NOT REPLY [Bug 43558] New: - Ant created zips do not set internal_file_attributes bit 1 appropriately
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43558
Summary: Ant created zips do not set internal_file_attributes bit
1 appropriately
Product: Ant
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: alexr@leftfield.org
Info-zip and WinZip both set and obey this bit to indicate that a file is a text file and should have line
ending translation from the host platform to the local platform where the unzip is happening.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 43558] - Ant created zips do not set internal_file_attributes bit 1 appropriately
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43558
peterreilly@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From peterreilly@apache.org 2007-10-04 15:07 -------
???? How can this be done ??????
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 43558] - Ant created zips do not set internal_file_attributes bit 1 appropriately
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43558
------- Additional Comments From stevel@apache.org 2007-10-05 02:24 -------
We aren't going to try and be clever and work it out for the end user. There's a
good reason for that; the algorithms always get it wrong. Try, for example, to
distinguish UTF8 from iso-8859-1 or ANSI.
1. We could do is add a textfiles attribute to zipfileset that tells zip to set
the bit
<zipfileset dir="doc" includes="**/*.txt" textfiles="true" />
2. we'd need to do the same on unzip.
3. and write tests.
The normal best practise here is to use <fixcrlf> to force in the line endings
you want; DOS for BAT files and windows text, unix for .sh scripts, and
everything else can be left alone.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 43558] - Ant created zips do not set internal_file_attributes bit 1 appropriately
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43558
alexr@leftfield.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
------- Additional Comments From alexr@leftfield.org 2007-10-05 08:28 -------
(In reply to comment #3)
> We aren't going to try and be clever and work it out for the end user. There's a
> good reason for that; the algorithms always get it wrong. Try, for example, to
> distinguish UTF8 from iso-8859-1 or ANSI.
The existing implementations only handle ASCII.
> 1. We could do is add a textfiles attribute to zipfileset that tells zip to set
> the bit
>
> <zipfileset dir="doc" includes="**/*.txt" textfiles="true" />
>
> 2. we'd need to do the same on unzip.
>
> 3. and write tests.
This would work.
> The normal best practise here is to use <fixcrlf> to force in the line endings
> you want; DOS for BAT files and windows text, unix for .sh scripts, and
> everything else can be left alone.
This doesn't work. Unzip on both Linux and Windows and you're not getting the local line endings.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 43558] - Ant created zips do not set internal_file_attributes bit 1 appropriately
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43558
------- Additional Comments From alexr@leftfield.org 2007-10-04 17:10 -------
If I'm following the code correctly, Info-zip's trees.c looks at the compressed code histograms to decide if
the file being compressed is binary or text and then sets this bit accordingly. The decompressor looks at
the platform that did the compression and this flag to decide what line endings to change from/to.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 43558] - Ant created zips do not set internal_file_attributes bit 1 appropriately
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43558
peterreilly@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org