bugGNUstep - Bugs: bug #20268, NSKeyedArchiver can't handle C...

Group
 
 

bug #20268: NSKeyedArchiver can't handle C arrays

Submitter:  Larry Campbell <lcampbel>
Submitted:  Tue 26 Jun 2007 06:22:41 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 30 Jan 2009 07:30:22 PM UTC, comment #2: 

fixed.

Richard Frith-Macdonald <CaS>
Group Member
Tue 26 Jun 2007 07:13:09 PM UTC, comment #1: 

Should be fixed in svn ... please test and let me know.

Richard Frith-Macdonald <CaS>
Group Member
Tue 26 Jun 2007 06:22:41 PM UTC, original submission:  

NSKeyedArchiver raises an exception if you ask it to encode an array:

    char foo[4];
    [coder encodeValueOfObjCType:@encode(typeof(foo)) at:&foo];

but NSArchiver handles it fine. (Well, not optimally, as it encodes the length too, which is wasteful, but at least it works and doesn't throw an exception.)

Larry Campbell <lcampbel>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by lcampbel (Submitted the item)
  •  

    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
    2009-01-30 CaS Open/ClosedIn Test Closed
    2007-06-26 CaS StatusNone Fixed
        Open/ClosedOpen In Test

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code