ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r711196 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java
Date Tue, 04 Nov 2008 07:19:28 GMT
Author: maartenc
Date: Mon Nov  3 23:19:28 2008
New Revision: 711196

URL: http://svn.apache.org/viewvc?rev=711196&view=rev
Log:
FIX: Files with non-latin symbols fail to download (IVY-962)

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java?rev=711196&r1=711195&r2=711196&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/AbstractURLHandler.java Mon Nov  3
23:19:28 2008
@@ -97,7 +97,7 @@
             
             // it is possible that the original url was already (partial) escaped,
             // so we must unescape all '%' followed by 2 hexadecimals...
-            String uriString = uri.toString();
+            String uriString = uri.toASCIIString();
             
             // manually escape the '+' character
             uriString = uriString.replaceAll("\\+", "%2B");



Mime
View raw message