Browse Source

Manifests should remain in UTF-8, not the platform encoding.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274113 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
48c52efebd
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      build.xml
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Manifest.java

+ 1
- 1
build.xml View File

@@ -638,7 +638,7 @@
</copy>

<copy todir="${build.classes}"
overwrite="true">
overwrite="true" encoding="UTF-8">
<fileset dir="${java.dir}">
<include name="**/version.txt"/>
<include name="**/defaultManifest.mf"/>


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Manifest.java View File

@@ -730,7 +730,7 @@ public class Manifest {
}
try {
Manifest defaultManifest
= new Manifest(new InputStreamReader(in, "ASCII"));
= new Manifest(new InputStreamReader(in, "UTF-8"));
Attribute createdBy = new Attribute("Created-By",
System.getProperty("java.vm.version") + " ("
+ System.getProperty("java.vm.vendor") + ")" );


Loading…
Cancel
Save