[Mono-bugs] [Bug 61906][Wis] New - Int32.MinValue.ToString() truncates output by 1 character

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 24 Jul 2004 07:35:04 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by infodate@aster.pl.

http://bugzilla.ximian.com/show_bug.cgi?id=61906

--- shadow/61906	2004-07-24 07:35:04.000000000 -0400
+++ shadow/61906.tmp.5258	2004-07-24 07:35:04.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 61906
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Windows XP
+OS Details: Xp SP1 PL Pro fully patched
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: infodate@aster.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Int32.MinValue.ToString() truncates output by 1 character
+
+Description of Problem:
+
+Int32.MinValue.ToString() call produces - "-214748364" insted of "-
+2147483648"
+
+
+Steps to reproduce the problem:
+1. Create any console program calling Int32.MinValue.ToString() and print 
+result of call.
+2. 
+3. 
+
+Actual Results:
+Truncated string version of number with - sign in front
+
+
+Expected Results:
+Full string with appriopriate number!
+
+How often does this happen? 
+Reproducible every time function is called!
+
+
+Additional Information:
+This most probably stupid bug caused by improper string lenght processing 
+which does not account for - sign in front of negative Int32. This could 
+affect any other signed integer types as well!