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

Group
 
 

bug #8385: NSKeyedUnarchiver doesn't unarchive on Windows

Submitter:  None
Submitted:  Wed 31 Mar 2004 10:25:05 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-05-09 FredKiefer StatusNone Fixed
    Open/ClosedOpen Closed
2004-04-29 nico CategoryMakefiles Base/Foundation

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code