Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 14856 invoked from network); 19 Jun 2009 14:09:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jun 2009 14:09:10 -0000 Received: (qmail 21477 invoked by uid 500); 19 Jun 2009 14:09:21 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 21426 invoked by uid 500); 19 Jun 2009 14:09:21 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 21417 invoked by uid 99); 19 Jun 2009 14:09:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 14:09:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 14:09:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F421F23888C2; Fri, 19 Jun 2009 14:08:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r786515 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadProperties.java Date: Fri, 19 Jun 2009 14:08:56 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090619140856.F421F23888C2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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);