[Mono-bugs] [Bug 69771][Nor] New - System.Globalization string comparisons fail

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Nov 2004 11:02:49 -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 devslashnull@gmail.com.

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

--- shadow/69771	2004-11-21 11:02:49.000000000 -0500
+++ shadow/69771.tmp.31209	2004-11-21 11:02:49.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 69771
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Mac OS X 10.3
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: devslashnull@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Globalization string comparisons fail
+
+It seems that many if not all the string comparison functions and their
+dependents (String.Compare, String.IndexOf etc) do not behave correctly in
+some culture settings.
+
+Steps to reproduce the problem:
+1. Compile any of the examples listed here:
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconsortingdataforspecificculture.asp
+2. Run them
+
+For the last example I get:
+
+Actual Results:
+When the CurrentCulture is "da-DK",
+result of comparing Apple with Ęble is: -1
+
+When the CurrentCulture is "en-US",
+result of comparing Apple with Ęble is: -1
+
+
+Expected Results:
+When the CurrentCulture is "da-DK", 
+the result of comparing Apple with Ęble is: -1
+
+When the CurrentCulture is "en-US", 
+the result of comparing Apple with Ęble is: 1
+
+How often does this happen? 
+Every time
+
+Additional Information:
+Mono 1.0.2