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: Mon, 11 Oct 2010 22:22:31 +0000
User-agent: Opera/9.80 (Macintosh; PPC Mac OS X; U; en) Presto/2.6.30 Version/10.62

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/




reply via email to

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