bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #31309] URL problems with local files and anchors


From: Riccardo mottola
Subject: [bug #31309] URL problems with local files and anchors
Date: Tue, 12 Oct 2010 06:58:03 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8

Follow-up Comment #1, bug #31309 (project gnustep):

NSURL *url=[NSURL fileURLWithPath :@"/this#is a Path with % < > ?"];
NSLog(@"%@", [url path]);
NSLog(@"%@", [url fragment]);
NSLog(@"%@", [url absoluteString]);
NSLog(@"%@", [url relativeString]);
NSLog(@"%@", [url description]);

The above code executed on mac 10.4 yields:

2010-10-12 08:53:03.268 URLTest[387] /this#is a Path with % < > ?
2010-10-12 08:53:03.268 URLTest[387] (null)
2010-10-12 08:53:03.268 URLTest[387]
file://localhost/this%23is%20a%20Path%20with%20%25%20%3C%20%3E%20%3F
2010-10-12 08:53:03.268 URLTest[387]
file://localhost/this%23is%20a%20Path%20with%20%25%20%3C%20%3E%20%3F
2010-10-12 08:53:03.268 URLTest[387]
file://localhost/this%23is%20a%20Path%20with%20%25%20%3C%20%3E%20%3F


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31309>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]