discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSURL compatibility with MacOS X


From: Richard Frith-Macdonald
Subject: Re: NSURL compatibility with MacOS X
Date: Thu, 16 Jan 2003 15:09:35 +0000


On Wednesday, January 15, 2003, at 03:29  pm, Larry Campbell wrote:

On MacOS X, -[NSURL initWithScheme:host:path:] requires that the path supplied be absolute (starting with '/') and throws an exception if it's not.

In GNUstep, a path starting with a '/' produces an invalid URL -- the slash is doubled: "http://host//path";.

In general, unless MacOS X is clearly wrong (which I don't think it is in this case) shouldn't GNUstep behave like MacOS X?

I've modified NSURL to accept a path with a leading slash, but not raise an exception if the path doesn't have one. RFC1738 says ... 'Note that the "/" between the host (or port) and the url-path is NOT part of the url-path' ... which I would read as saying that the MacOS-X behavior is technically incorrect, but compatibility considerations are generally more important than consistency with RFCs





reply via email to

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