savannah-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-dev] [Bug #1534] -[GSUnicodeInlineString -intValue] bug


From: nobody
Subject: [Savannah-dev] [Bug #1534] -[GSUnicodeInlineString -intValue] bug
Date: Mon, 28 Oct 2002 08:30:35 -0500

=================== BUG #1534: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1534&group_id=11

Submitted by: newhousera                Project: Savannah                       
Submitted on: 2002-Oct-28 13:30
Category:  Other                        Severity:  5 - Average                  
Priority:  None                         Bug Group:  None                        
Resolution:  None                       Assigned to:  None                      
Status:  Open                           Effort:  0.00                           

Summary:  -[GSUnicodeInlineString -intValue] bug 

Original Submission:  Using gnustep-base-1.4.1 on a SUN Blade 1000 with a 
Solaris 2.8 OS, the following code:

int main(int argc, char *argv[])
{
  NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init]; 
  id test1; 
  test1 = [NSString stringWithFormat:@"    %d", 0x7FFFFFFF]; 
  NSLog(@"class: %@  raw: %d  intValue: %d  length: %d",
         NSStringFromClass([test1 class]), 0x7FFFFFFF,
        [test1 intValue], [test1 length]);
  [pool release]; 
  exit(0); 
  return 0;    //  Make for ANSI spec. 
} 

results in: 

2002-10-25 07:56:53.515 kindTest[11448] class: GSUnicodeInlineString raw: 
2147483647  intValue: 21474  length: 14 

(for comparison, the result from OpenStep 4.2 on a Sparc-20
is: 
Oct 25 07:42:31 kindTest[7787] class: NSCStringWithGap  raw: 2147483647  
intValue: 2147483647 length: 14 
) 

This problem (and similiar ones) are corrected when lines 571, 945, and 1110 in 
GSString.m are changed from: 
            unsigned int  l = self->_count < 10 ? self->_count : 9; 
to: 
            unsigned int l = self->_count; 

Is there any reason these limits should not be removed? 



No Followups Have Been Posted


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1534&group_id=11




reply via email to

[Prev in Thread] Current Thread [Next in Thread]