chezinut / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

URI.makeAbsoluteURI does not handle local windows filepaths properly #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
_uri1 = new URI("example.txt");
_url2 = new URI("file://C:/path/to/aDifferentExample.txt");
_uri1.makeAbsoluteURI(_url2 ).toString() returns the string 
"file://c/path/toexample.txt"

expected output --> string "file://c:/path/to/toexample.txt" (notice the colon 
in c:/)

I copy and pasted trace output and then shortened for readability.  The problem 
is that the method is removing the colon after the drive identifier.

I am using the current revision at revision 118 according to tortoise svn

Original issue reported on code.google.com by gae.loca...@gmail.com on 12 Jul 2010 at 5:40

GoogleCodeExporter commented 9 years ago
I made copy and paste errors.  The only thing that is wrong with the string it 
prints out is the missing colon after the drive letter.  I can't edit my post 
to fix it.

Original comment by gae.loca...@gmail.com on 12 Jul 2010 at 5:41