This snippet:url = [[[NSURL alloc] initWithString:@"http:// [2001:4860:0:2001::68]/"] autorelease]; NSLog(@"url host=\"[EMAIL PROTECTED]", absolute string=\"[EMAIL PROTECTED]"", [url host], [url absoluteString]);
url = [[[NSURL alloc] initWithScheme:@"http" host:@"2001:4860:0:2001::68" path:@"/"] autorelease]; NSLog(@"url host=\"[EMAIL PROTECTED]", absolute string=\"[EMAIL PROTECTED]"", [url host], [url absoluteString]);
url = [[[NSURL alloc] initWithScheme:@"http" host:@"[2001:4860:0:2001::68]" path:@"/"] autorelease]; NSLog(@"url host=\"[EMAIL PROTECTED]", absolute string=\"[EMAIL PROTECTED]"", [url host], [url absoluteString]);
produces this output:2008-12-02 22:56:20.641 NSURLBug[17834:817] url host="2001:4860:0:2001::68", absolute string="http:// [2001:4860:0:2001::68]/" 2008-12-02 22:56:20.644 NSURLBug[17834:817] url host="2001", absolute string="http://2001:4860:0:2001::68//" 2008-12-02 22:56:20.657 NSURLBug[17834:817] url host="[2001", absolute string="http://%5B2001:4860:0:2001::68%5D//"
The first line is the correct, desired result; the next two are totally borked. So is this just known to be broken? Or is there some way to get it to work?
- lc
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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 [EMAIL PROTECTED]