ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r786515 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java
Date Fri, 19 Jun 2009 14:08:56 GMT
Author: bodewig
Date: Fri Jun 19 14:08:56 2009
New Revision: 786515

URL: http://svn.apache.org/viewvc?rev=786515&view=rev
Log:
explicitly set encoding to iso-8859-1 since this is what Properties.load expects

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java?rev=786515&r1=786514&r2=786515&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java Fri Jun 19 14:08:56
2009
@@ -168,7 +168,7 @@
                 if (!text.endsWith("\n")) {
                     text = text + "\n";
                 }
-                tis = new ByteArrayInputStream(text.getBytes());
+                tis = new ByteArrayInputStream(text.getBytes("ISO8859_1"));
                 final Properties props = new Properties();
                 props.load(tis);
 



Mime
View raw message