[Mono-bugs] [Bug 60812][Cos] New - "neutral" culture info causes exception

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 27 Jun 2004 23:40:24 -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 michi@zeroc.com.

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

--- shadow/60812	2004-06-27 23:40:24.000000000 -0400
+++ shadow/60812.tmp.7640	2004-06-27 23:40:24.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 60812
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: michi@zeroc.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: "neutral" culture info causes exception
+
+using System.Reflection;
+using System.Runtime.CompilerServices;
+[assembly: AssemblyCulture("neutral")]
+
+Try compiling a source file the above culture setting. mcs stops with:
+
+ne (ne (ne ) is null
+
+Unhandled Exception: System.ArgumentException: Culture name neutral is 
+not supported.
+Parameter name: name
+in <0x000c8> System.Globalization.CultureInfo:.ctor (string,bool)
+in <0x00012> System.Globalization.CultureInfo:.ctor (string)
+in <0x00222> 
+System.Reflection.Emit.AssemblyBuilder:DefineVersionInfoResource ()
+in <0x0135f> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00012> Mono.CSharp.Driver:Main (string[])
+
+The same culture setting works fine with Visual C#.
+
+Cheers,
+
+Michi.