You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2011/01/05 15:32:39 UTC

DO NOT REPLY [Bug 50543] New: Locator.decodeUri broken for Latin-1 chars

https://issues.apache.org/bugzilla/show_bug.cgi?id=50543

           Summary: Locator.decodeUri broken for Latin-1 chars
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: jglick@netbeans.org


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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50543] Locator.decodeUri broken for Latin-1 chars

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50543

Jesse Glick <jg...@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jglick@netbeans.org
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.3

--- Comment #1 from Jesse Glick <jg...@netbeans.org> 2011-01-05 10:18:59 EST ---
Fixed in revision 1055487.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.