[Mono-bugs] [Bug 61906][Wis] Changed - MarshAs(UnmanagedType.LPStr) truncates output by 1 leading sign character
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 24 Jul 2004 08:17:56 -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.5489 2004-07-24 08:17:56.000000000 -0400
@@ -2,22 +2,22 @@
Product: Mono: Class Libraries
Version: unspecified
OS: Windows XP
OS Details: Xp SP1 PL Pro fully patched
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
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
+Summary: MarshAs(UnmanagedType.LPStr) truncates output by 1 leading sign character
Description of Problem:
Int32.MinValue.ToString() call produces - "-214748364" insted of "-
2147483648"
@@ -40,6 +40,15 @@
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!
+
+------- Additional Comments From infodate@aster.pl 2004-07-24 08:17 -------
+Sorry for error in defining place of the bug:
+
+the bug is in marshaling part of corlib
+
+when calling the function returning string representing number
+preceeded with minus sign last digit (least significant one) is
+truncated