On Fri, Dec 5, 2008 at 12:36 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > > On 5 Dec 2008, at 23:40, "Michael Ash" <[EMAIL PROTECTED]> wrote: >> 2) It doesn't correctly escape strings, producing all sorts of fun >> results if you encode the string "$null": >> >> NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys: >> @"$null", @"key", nil]; >> NSData *data = [NSKeyedArchiver archivedDataWithRootObject: dict]; >> NSDictionary *dict2 = [NSKeyedUnarchiver unarchiveObjectWithData: data]; >> >> $ ./a.out >> 2008-12-05 10:52:15.637 a.out[1061:10b] *** Terminating app due to >> uncaught exception 'NSInvalidArgumentException', reason: '*** >> -[__NSPlaceholderDictionary initWithObjects:forKeys:]: number of >> objects (0) not equal to number of keys (1)' > > Does anybody know whether GnuStep has the same NSKeyedArchiver bug?
My (limited) understanding is that GNUStep only reads Cocoa archives, but doesn't write them, and so has its own format for its NSCoder subclasses. I'd assume that those wouldn't be broken in such a silly way. But I don't know for sure. > And, if you have filed a bug, what is its status? I have not. It's not my discovery (I found out about it on this mailing list, I think) and it seems like such an obvious and trivial thing to file. Mike _______________________________________________ Cocoa-dev mailing list ([email protected]) 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]
