DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=32718>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32718 Summary: Cannot determine Ant home from Locator class if path contains umlauts Product: Ant Version: 1.6.2 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] What I have done: - "ANT_HOME" system property is not set. - "ant-launcher.jar" lies on path that contains umlauts (i.e. "c:\ä ö ü\ant-launcher.jar") - I call the class org.apache.tools.ant.launch.Launcher and receive the message "Ant home is set incorrectly or ant could not be located" Debugging Ant shows that the problem is in the method "fromURI(String uri)" in class "org.apache.tools.ant.launch.Locator": The method "getResourceSource(ClassLoader c, String resource)" of that class calls "c.getResource(resource)" (with c is ClassLoader) which returns "jar:file:/C:/%c3%a4%20%c3%b6%20%c3%bc/ant-launcher.jar!/org/apache/to ols/ant/launch/Launcher.class". This URI is then given to the "fromURI(String uri)" method which tries to decode it but fails to do that correctly since the URI is encoded in UTF-8: i.e. "%c3%a4" is encoded into two consecutive characters (i.e. it splits it up in "%c3" and "%a4") instead of one. Therefore instead of getting back an "ä" the string "ä" is returned and hence the resulting path is incorrect. Could the de/encoding scheme from the revised 1.4 version of URLEncoder be used? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]