[Mono-bugs] [Bug 51443][Wis] New - Decimal.ToString () doesn't honor active NumberFormatInfo
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 27 Nov 2003 10:24:28 -0500 (EST)
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 ximian@aksi.mdamt.net.
http://bugzilla.ximian.com/show_bug.cgi?id=51443
--- shadow/51443 2003-11-27 10:24:28.000000000 -0500
+++ shadow/51443.tmp.25034 2003-11-27 10:24:28.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 51443
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ximian@aksi.mdamt.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Decimal.ToString () doesn't honor active NumberFormatInfo
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Decimal.ToString () doesn't honor active NumberFormatInfo. Somehow it
+failed to
+detect active NumberFormatInfo.
+
+Steps to reproduce the problem:
+1. try the test case *see note below*
+2.
+3.
+
+Actual Results:
+All case will use Invariant NumberFormatInfo
+
+Expected Results:
+Decimal should use NumberFormatInfo specified by IFormatProvider
+
+How often does this happen?
+always
+
+Additional Information:
+the patch will remove a method which used to detect active
+NumberFormatInfo. The method function is replaced
+by using NumberFormatInfo.GetInstance () in ToString and Parse methods.
+However in order to get the right result, you should have the patch for bug
+#51174
+ (http://bugzilla.ximian.com/show_bug.cgi?id=51174) applied to mono first
+before trying the test case.