[Mono-bugs] [Bug 58130][Wis] New - Console.WriteLine("{0}",5); is not work

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 6 May 2004 08:52:19 -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 ddmk@r66.ru.

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

--- shadow/58130	2004-05-06 08:52:19.000000000 -0400
+++ shadow/58130.tmp.10156	2004-05-06 08:52:19.000000000 -0400
@@ -0,0 +1,71 @@
+Bug#: 58130
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ddmk@r66.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Console.WriteLine("{0}",5); is not work
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+Console.WriteLine("{0}",a); 
+dos not work 
+//where a is int
+
+
+Steps to reproduce the problem:
+
+using System;
+class Test 
+{	
+	static void Main(string[] args)
+	{ 			
+			Console.WriteLine("{0}",5);
+			
+	}
+}
+
+Actual Results:
+F:\My\Projects\cpp\temp>mono 2.exe
+
+Unhandled Exception: System.NullReferenceException: Object reference not 
+set to an instance of an object
+in (unmanaged) (wrapper managed-to-native) 
+System.Globalization.CultureInfo:construct_number_format ()
+in <0x00004> (wrapper managed-to-native) 
+System.Globalization.CultureInfo:construct_number_format ()
+in <0x00080> System.Globalization.CultureInfo:get_NumberFormat ()
+in <0x00025> System.Globalization.NumberFormatInfo:get_CurrentInfo ()
+in <0x00056> System.Globalization.NumberFormatInfo:GetInstance 
+(System.IFormatProvider)
+in <0x00016> System.Int32:ToString (string,System.IFormatProvider)
+in <0x002db> System.String:FormatHelper 
+(System.Text.StringBuilder,System.IFormatProvider,string,object[])
+in <0x00037> System.String:Format (System.IFormatProvider,string,object[])
+in <0x00041> System.String:Format (string,object)
+in <0x00017> System.IO.TextWriter:Write (string,object)
+in <0x00011> System.IO.TextWriter:WriteLine (string,object)
+in <0x00035> System.IO.SynchronizedWriter:WriteLine (string,object)
+in <0x0001d> System.Console:WriteLine (string,object)
+in <0x00021> Test:Main (string[])
+
+
+
+Expected Results:
+5
+
+How often does this happen? 
+everytime
+
+Additional Information: