[Mono-bugs] [Bug 69787][Min] New - Type.GetType(string) should skip CR, LF, tabs as well as whitespace

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Nov 2004 23:11:56 -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 atsushi@ximian.com.

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

--- shadow/69787	2004-11-21 23:11:56.000000000 -0500
+++ shadow/69787.tmp.6805	2004-11-21 23:11:56.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 69787
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Type.GetType(string) should skip CR, LF, tabs as well as whitespace
+
+MS.NET's Type.GetType(string) looks skipping CR, LF and tabs as well as
+whitespace character (\x20) while mono runtime does not.
+
+Repro:
+
+using System;
+
+public class Test
+{
+	public static void Main ()
+	{
+		Console.WriteLine (Type.GetType
+(@"System.Configuration.NameValueSectionHandler,
+			System,
+Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b77a5c561934e089"));
+	}
+}
+
+Expected result:
+$ ./typename.exe
+System.Configuration.NameValueSectionHandler
+
+Actual result:
+$ mono typename.exe
+
+It happens consistently.