Bug 50543 - Locator.decodeUri broken for Latin-1 chars
Summary: Locator.decodeUri broken for Latin-1 chars
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: 1.7.1
Hardware: PC Linux
: P2 major (vote)
Target Milestone: 1.8.3
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 09:32 UTC by Jesse Glick
Modified: 2011-01-05 10:18 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-01-05 09:32:37 UTC
http://netbeans.org/bugzilla/show_bug.cgi?id=192190 is original report. As early as 1.7.1 (did not check earlier; still true in 1.8.2), Locator.decodeUri("file:/tmp/açaí%20berry") produces "file:/tmp/a�a� berry" rather than "file:/tmp/açaí berry" as expected. Note that encodeURI (yes capitalization differs!) produces "file:/tmp/a%C3%A7a%C3%AD%20berry" for the reverse direction, which is also fine and decodes correctly. But new File("/tmp/açaí berry").toURI().toString() produces the problematic "file:/tmp/açaí%20berry"; decodeUri should be more robust and not require toASCIIString() to be used in this case.
Comment 1 Jesse Glick 2011-01-05 10:18:59 UTC
Fixed in revision 1055487.