bugGNUstep - Bugs: bug #13031, Archive-unarchive of data objects...

 
 

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

bug #13031: Archive-unarchive of data objects does not work on PowerPC

Submitted by:  None
Submitted on:  Mon 09 May 2005 01:16:11 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Works For Me
Privacy: PublicAssigned to: Adam Fedor <fedor>
Open/Closed: Closed

Thu 19 May 2005 12:23:31 PM UTC, comment #4:

For me this bug is a duplicate of #12620, which I did close some time ago. I will close this bug now, feel free to reopen it, if you think there is still some unsolved issue.

Fred Kiefer <FredKiefer>
Project Member
Fri 13 May 2005 03:46:46 AM UTC, comment #3:

OK. I won't have time to look at this on a PPC for a few days, but I did notice that the 'text field 2' outlet is hooked to the wrong text field in Gorm, so that's why the Archived objects don't show up. Also the Keyed Archiving works in the latest CVS, but appears to be incorrect in the last release version (e.g. startup 0.10.2) - it's a work in progress. Other than that I think it is working.

Adam Fedor <fedor>
Project AdministratorIn charge of this item.
Thu 12 May 2005 05:54:53 AM UTC, comment #2:

I'll try to upload a test program. I used the unarchived objects to draw into a text field, and did not get the results of the original objects. I'll admit I'm still suffering culture shock in the GNUstep environment, so maybe there is something I'm missing.

Mark Tracy

Anonymous
Thu 12 May 2005 04:03:30 AM UTC, comment #1:

I've tried this on YDL 3.0 and it works fine for me with the latest release and also CVS versions of GNUstep, also with several other architectures (with different byte orders). Below is the test I used. Maybe there is something more specific I need to do to make it (not) work?

#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>

int main (int argc, char *argv[])
{
CREATE_AUTORELEASE_POOL(pool);
NSColor * red = [NSColor redColor];
NSData * redAr = [NSArchiver archivedDataWithRootObject: red];
NSColor * redU = [NSUnarchiver unarchiveObjectWithData: redAr];

GSPrintf(stdout, @"Original red %@\n", red);
GSPrintf(stdout, @"New red %@\n", redU);

[pool release];
return 0;
}

Adam Fedor <fedor>
Project AdministratorIn charge of this item.
Mon 09 May 2005 01:16:11 AM UTC, original submission:

I'm using YellowDog Linux 3.0 with gcc-3.2.3 and GNUstep startup-0.10.2

The following sequence does not work:

NSColor * red = [NSColor redColor];
NSData * redAr = [NSArchiver archivedDataWithRootObject: red];
NSColor * redU = [NSUnarchiver unarchiveObjectWithData: redAr];

redU is not a valid NSColor object. Same story using NSFont objects. Same story using NSKeyedArchiver. This code works under Mac OS X. This is probably something specific to the PowerPC architecture; byte-order maybe?

Anonymous

 

Attached Files
file #2946:  AUTest.tar.gz added by None (36KiB - application/x-gzip - test program of archive/unarchive )

 

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 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 19 May 2005 12:23:31 PM UTCFredKieferOpen/ClosedOpen=>Closed
Thu 12 May 2005 05:54:53 AM UTCNoneAttached File-=>Added AUTest.tar.gz, #2495
Thu 12 May 2005 04:03:30 AM UTCfedorStatusNone=>Works For Me
  Assigned toNone=>fedor

Back to the top


Powered by Savane 3.1-cleanup1