bugGNUstep - Bugs: bug #19010, [NSNumber stringValue] conformity...

 
 

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

bug #19010: [NSNumber stringValue] conformity for boolean values

Submitted by:  Wolfgang Sourdeau <wolfgang>
Submitted on:  Fri 09 Feb 2007 04:07:51 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 20 Feb 2007 08:49:50 AM UTC, comment #1:

Fixed in svn-trunk ... thanks

Richard Frith-Macdonald <CaS>
Project Member
Fri 09 Feb 2007 04:07:51 PM UTC, original submission:

Hi,

When an NSNumber instance is created with "numberWithBool:", invoking stringValue on it returns either "YES" or "NO", while on OSX and libFoundation, the return value will be "1" or "0".

Even though it does not seem to be specified in the Cocoa Documentation, it would be better to align gnustep-base to this behaviour.

Wolfgang

Wolfgang Sourdeau <wolfgang>

 

Attached Files
file #12012:  NSNumber-diff added by iamleeg (372B - application/octet-stream - trivial patch (didn't apply it, in case people don't want to break the existing behaviour))

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by iamleeg (Updated the item)
  • -unavailable- added by wolfgang (Submitted the item)
  •  

    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
    Tue 20 Feb 2007 08:49:50 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 19 Feb 2007 05:13:27 PM UTCiamleegAttached File-=>Added NSNumber-diff, #12012

    Back to the top


    Powered by Savane 3.1-cleanup1