bugGNUstep - Bugs: bug #8385, NSKeyedUnarchiver doesn't...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8385: NSKeyedUnarchiver doesn't unarchive on Windows

Submitted by:  None
Submitted on:  Wed 31 Mar 2004 10:25:05 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 09 May 2004 03:57:01 PM UTC, comment #1:

I tried to reproduce this problem with the current GNUstep code on Cygwin and it works perfectly there. Must have been fixed by some of Richard changes.

Fred Kiefer <FredKiefer>
Project Member
Wed 31 Mar 2004 10:25:05 AM UTC, original submission:

NSKeyedUnarchiver doesn't seem to unarchive on Windows.

The following code

id test=[NSMutableArray arrayWithObjects:@"Test", @"Keks", @"Hurz", nil];
id e = [test objectEnumerator];
id c;
printf("before\n");
while(c=[e nextObject])
{
printf("%s\n", [c cString]);
}

[NSKeyedArchiver archiveRootObject:test toFile:@"test"];
test = [NSKeyedUnarchiver unarchiveObjectWithFile:@"test"];

e = [test objectEnumerator];
printf("after\n");
while(c=[e nextObject])
{
printf("%s\n", [c cString]);
}

works perfectly in OS X (with Apple's foundation library). On Windows, it doesn't.
The unarchived array seems completely empty (but the program doesn't crash).

Also, NSKeyedArchiver saves the "version" property as a string; it should be an integer. When I manually change that, I can unarchive the archived object from Windows on OS X.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 09 May 2004 03:57:01 PM UTCFredKieferStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Thu 29 Apr 2004 03:30:31 PM UTCnicoCategoryMakefiles=>Base/Foundation

Back to the top


Powered by Savane 3.1-cleanup1