bugDotGNU Portable.NET - Bugs: bug #3050, [0.5.4]: bug in hexadecimal...

 
 

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

bug #3050: [0.5.4]: bug in hexadecimal formatting of negative integers

Submitted by:  Yannis BRES <yannis_bres>
Submitted on:  Wed 02 Apr 2003 10:23:07 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 20 Jul 2003 06:50:00 PM UTC, comment #1:

Fixed in CVS . 20-07-2003 .

sorry for the delay , but we hope you enjoy the flight...
(more seriously, I'm doing a full QA of pnetlib base classes, your help is appreciated)

Gopal.V <t3rmin4t0r>
Project Administrator
Wed 02 Apr 2003 10:23:07 AM UTC, original submission:

Both Mono and M$ format a negative number such as -127 in hexadecimal as ffffff81 while pnet format it as 81.
See the attached test file with the different VM outputs.
Have fun,
Yannis

Pnet 0.5.4 :
plus127.ToString( "x" ): 7f
String.Format( "7f", plus127 ): 7f
minus127.ToString( "x" ): 81
String.Format( "81", minus127 ): 81

Mono 0.23 :
plus127.ToString( "x" ): 7f
String.Format( "7f", plus127 ): 7f
minus127.ToString( "x" ): ffffff81
String.Format( "ffffff81", minus127 ): ffffff81

M$ :
plus127.ToString( "x" ): 7f
String.Format( "7f", plus127 ): 7f
minus127.ToString( "x" ): ffffff81
String.Format( "ffffff81", minus127): ffffff81

Yannis BRES <yannis_bres>

 

Attached Files
file #378:  ToStringX.cs added by yannis_bres (549B - text/plain)

 

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

Date Changed By Updated Field Previous Value => Replaced By
Sun 20 Jul 2003 06:50:00 PM UTCt3rmin4t0rOpen/ClosedOpen=>(Error - Not Found)
Sun 20 Jul 2003 06:49:59 PM UTCt3rmin4t0rStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1