bugGNUstep - Bugs: bug #36824, NSArchiver barfs on const values

Group
 
 

bug #36824: NSArchiver barfs on const values

Submitter:  Larry Campbell <lcampbel>
Submitted:  Tue 10 Jul 2012 08:21:44 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
   

Wed 11 Jul 2012 04:52:21 AM UTC, comment #2: 

Thanks ... I comitted that change.

Richard Frith-Macdonald <CaS>
Group Member
Tue 10 Jul 2012 08:22:22 PM UTC, comment #1: 

(I should have said "const types" not "const values". You know what I mean.)

Larry Campbell <lcampbel>
Tue 10 Jul 2012 08:21:44 PM UTC, original submission:  

If you do something like this:

const unsigned char version = 1;
[[coder encodeValueOfObjCType:@encode(typeof(version)) at:&version];

an exception is thrown, because the typestring is "rC" where the 'r' type specifier means 'const', but encodeValueOfObjCType:at: doesn't skip type specifiers. I think it should; Mac OS X does.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2012-07-11 CaS StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code