URL:
<http://savannah.gnu.org/bugs/?31309>
Summary: URL problems with local files and anchors
Project: GNUstep
Submitted by: rmottola
Submitted on: Mon 11 Oct 2010 10:22:31 PM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The following code works on Mac:
sourceURL = [NSURL
URLWithString:@"file://localhost/Users/multix/Sites/testpage.html"];
NSLog(@"File obtained from request: %@", [NSString
stringWithContentsOfURL:sourceURL]);
sourceURL = [NSURL
URLWithString:@"file://localhost/Users/multix/Sites/testpage.htm#foobarAnchor"];
NSLog(@"File obtained from request: %@", [NSString
stringWithContentsOfURL:sourceURL]);
being #foobarAnchor an invalid anchor inside the testpage.html, which exists:
botht imes the file gets displayed.
On GNUstep, only the URL without anchor gets displayed, the second time the
file is not found.
_______________________________________________________
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