Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 23464 invoked from network); 12 Dec 2005 21:23:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Dec 2005 21:23:16 -0000 Received: (qmail 40603 invoked by uid 500); 12 Dec 2005 21:23:15 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 40261 invoked by uid 500); 12 Dec 2005 21:23:14 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 40250 invoked by uid 99); 12 Dec 2005 21:23:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2005 13:23:13 -0800 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=RCVD_IN_WHOIS_BOGONS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of antoine@gmx.de designates 213.165.64.21 as permitted sender) Received: from [213.165.64.21] (HELO mail.gmx.net) (213.165.64.21) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 12 Dec 2005 13:23:13 -0800 Received: (qmail invoked by alias); 12 Dec 2005 21:22:51 -0000 Received: from e180156231.adsl.alicedsl.de (EHLO [192.0.2.6]) [85.180.156.231] by mail.gmx.net (mp024) with SMTP; 12 Dec 2005 22:22:51 +0100 X-Authenticated: #22961642 Message-ID: <439DEA44.2000905@gmx.de> Date: Mon, 12 Dec 2005 22:23:16 +0100 From: Antoine Levy-Lambert User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: URI encoding ... References: <43969F03.1080409@gmx.de> In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jesse Glick wrote: > Antoine Levy-Lambert wrote: > >> I have checked in some code lately related to URI encoding and decoding. > > > BTW should use java.net.URI and File.toURI and new File(URI) when > running on JDK 1.4+. I have an old outstanding bug for this, needs to > be reexamined: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=8031 Will look at this.By the way, the methods to encode/decode URIs are available in JDK 1.5, for instance URLEncoder.encode("UTF-8") does the same as org.apache.tools.ant.launch.Locator#encodeUri, > >> One bug report was about the impossibility to load properly a jar file >> having in his manifest a Class-Path attribute pointing to another jar >> file in a subdir, when the main jar file is in a directory containing >> spaces. > > > Note that a relative path in Class-Path is really a URI and must be > encoded. E.g. > > Class-Path: some%20other%20lib.jar Yes; the % escaping of the class path is now done in the new manifestclasspath task. AntClassloader > >> The other bug report was about entities not found when processing with >> an XML document located in a non ascii path and referring to >> entities in the same directory. > > > May be completely unrelated, but I recently found a JDK bug sounding > very similar to this: > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6341770 This bug report is fixed in the head revision of javax.xml.parsers.SAXParser http://cvs.apache.org/viewcvs.cgi/xml-commons/java/external/src/javax/xml/parsers/SAXParser.java?rev=1.7&view=log We just have to light a candle, hoping that the new version of SAXParser will be in the new JDK 1.5s shipped by Sun. > >> Now I am testing manifestclasspath. I tested it with änt (a umlaut nt, >> or ã) . this works. Now with a directory bearing a hebrew name (iom >> = םוי ) it does not work. > > > Just a guess: maybe you forgot to encode in UTF-8 before encoding to > %xx octets? That could cause problems for non-ISO-8859-1 text. No, the routines in Locator now do this UTF-8 encoding. I do not know yet what is wrong. I am going to test this on Solaris to see whether this problem could be a Windows-JVM bug. > > -J. > Cheers, Antoine --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org