[Mono-bugs] [Bug 77646][Nor] New - [2.0] Char.GetUnicodeCategory returns wrong value for \u0be6

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Feb 26 05:33:36 EST 2006


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 gert.driesen at pandora.be.

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

--- shadow/77646	2006-02-26 05:33:36.000000000 -0500
+++ shadow/77646.tmp.6158	2006-02-26 05:33:36.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 77646
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [2.0] Char.GetUnicodeCategory returns wrong value for \u0be6
+
+In both 1.0 and 2.0 profile, Mono's Char.GetUnicodeCategory returns 
+UnicodeCategory.OtherNotAssigned for \u0be6.
+
+However in the 2.0 profile it should return 
+UnicodeCategory.DecimalDigitNumber (to match MS.NET 2.0).
+
+Since the UnicodeCategory is, amongst other things, used to determine 
+whether a given character is a digit, this issue will cause Char.IsDigit 
+and Char.IsLetterOrDigit to return incorrect results too.
+
+This bug results in a test failure in CharCategoryTest.IsDigit on MS.NET 
+2.0.
+
+To reproduce, compile and run the following code snippet (using mcs and 
+gmcs):
+
+using System;
+
+public class Test {
+  static void Main () {
+    Console.WriteLine (char.GetUnicodeCategory ('\u0be6'));
+  }
+}
+
+Actual result:
+
+OtherNotAssigned (on both 1.0 and 2.0 profile)
+
+Expected result:
+
+OtherNotAssigned (on 1.0 profile)
+DecimalDigitNumber (on 2.0 profile)


More information about the mono-bugs mailing list