You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/08/13 16:29:09 UTC

DO NOT REPLY [Bug 45627] New: (jar task) manifestencoding default value should be UTF-8 instead of platform default encoding

https://issues.apache.org/bugzilla/show_bug.cgi?id=45627

           Summary: (jar task) manifestencoding default value should be UTF-
                    8 instead of platform default encoding
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: gawix@yahoo.com


In order to be consistent with the manifest task, the default encoding of the
manifest should be UTF-8.

A jar manifest should always be encoded as UTF-8 (Jar specification).
See also http://bugs.sun.com/view_bug.do?bug_id=5067559

The manifest encoding options ("manifestencoding" in "jar" task and "encoding"
in "manifest" task) create some confusion, giving the impression that the
manifest can be encoded using any arbitrary encoding (might be true for ant,
but not for Java). 

The encoding options should be presented as a convenience mechanism to avoid
encoding conversion of MANIFEST.MF templates.  It should also be clearly
documented that MANIFEST.MF encoding should be UTF-8. 

The encoding options could also become deprecated to avoid further confusion.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45627] (jar task) manifestencoding default value should be UTF-8 instead of platform default encoding

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45627


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|Core tasks                  |Documentation
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.0


--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2009-08-18 00:27:52 PDT ---
svn revision 805297 changes the manual to clearly state that Ant will always
write UTF-8.  Ant is in conformance with the spec and I don't really see any
problem.

The attributes are there only for the reading end and there may be good reasons
why existing manifest templates are not in UTF-8 (today less so than five years
ago, though).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.