On Tue, Nov 24, 2009 at 10:14 PM,  <lorenzo7...@gmail.com> wrote:
> This returns a non-nil value:
> NSURL * url = [NSURL URLWithString:@"sdsds"];
>
> The docs say this should fail. RFC 1758 looks for the string to begin with a
> scheme, eg http:

While "sdsds" is indeed a valid relative URL according to RFC 2396,
don't let NSURL's declaration of RFC-conformance fool you.  I have a
pretty severe bug (rdar://problem/7096953) logged against NSURL's
incorrect handling of IDNs.  Despite pointing to the spec, copying it
into the bug report, and walking step by step through NSURL's
violation thereof, I was told that it behaves according to the spec
and as designed.  I no longer trust NSURL's assertions of conformance.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to