[Mono-bugs] [Bug 67641][Wis] New - Brazilian currency not printed correctly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 5 Oct 2004 17:28:40 -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 jurandy@lsd.ic.unicamp.br.
http://bugzilla.ximian.com/show_bug.cgi?id=67641
--- shadow/67641 2004-10-05 17:28:40.000000000 -0400
+++ shadow/67641.tmp.26118 2004-10-05 17:28:40.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 67641
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jurandy@lsd.ic.unicamp.br
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Brazilian currency not printed correctly
+
+Description of Problem:
+When using System.Globalization in Brazilian Portuguese to print a double
+value as a currency in this language the system rounds the value instead of
+printing it separating the cents with comma.
+
+Steps to reproduce the problem:
+1. Create an application with the code below:
+ double total = 7.50;
+ System.Globalization.IFormatProvider formato =
+ new CultureInfo("pt-br", true);
+ Console.Write(String.Format("{0:c}", total));
+
+2. Compile and run it;
+
+Actual Results:
+R$8
+
+Expected Results:
+R$7,50
+
+How often does this happen?
+Always.
+
+Additional Information:
+It seems to be a problem only with Brazilian Portuguese. Trying another
+locales, e.g., "fr-fr", things work fine.