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/


_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to