[Mono-bugs] [Bug 67810][Nor] Changed - A Conversion bug

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 25 20:50:36 EDT 2005


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 bmaurer at users.sf.net.

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

--- shadow/67810	2005-05-07 12:05:07.000000000 -0400
+++ shadow/67810.tmp.1441	2005-05-25 20:50:36.000000000 -0400
@@ -257,6 +257,32 @@
 Microsoft.VisualBasic.Conversion.Val() should stop parsing when it reaches
 the first such character.
 
 Hope this helps :-)
 
 Jonathan Gilbert
+
+------- Additional Comments From bmaurer at users.sf.net  2005-05-25 20:50 -------
+On the test case
+
+using System;
+using Microsoft.VisualBasic;
+public class X
+{
+   public static void Main(string[] args)
+   {
+	   for (char c = Char.MinValue; c < char.MaxValue; c ++)
+		   if (Conversion.Val (c) != 0)
+			   Console.WriteLine ("{0}  -- {1}", c, Conversion.Val (c));
+   }
+}
+
+msft prints out
+
+1 -- 1
+...
+9 -- 9
+
+and nothing else. it's pretty clear they use something like:
+			if (c >= '0' && c <= '9')
+				return c - '0';
+			return 0;


More information about the mono-bugs mailing list