[Mono-bugs] [Bug 73417][Nor] Changed - Array.Sort() does not sort correctly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 28 Apr 2005 19:33:20 -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.


--- shadow/73417	2005-04-18 22:25:40.000000000 -0400
+++ shadow/73417.tmp.3272	2005-04-28 19:33:20.000000000 -0400
@@ -144,6 +144,21 @@
 It is culture dependent. What is your culture? Try Console.WriteLine
 It won't be fixed until we finish ongoing collation task which won't
 be so soon.
+------- Additional Comments From michi@zeroc.com  2005-04-28 19:33 -------
+The culture is en-AU. If I compile the code with Visual C# and run 
+it, I get one collation order, if I compile with mcs and run with 
+Mono, I get the other collation order. The problem for me is that the 
+array definition is generated by a compiler, in sorted order. The 
+generated code is then compiled and executed on either .NET or Mono. 
+Another part of the code does a split search on the sorted array. Of 
+course, if the collation order at run time doesn't match the order in 
+which the array was sorted, the split search fails.
+This may be related to bug 61458, which dealt with a very similar 
+problem. Can you think of any workaround that would work for 
+both .NET and Mono? At the moment, I'm doing a linear search in order 
+to keep the generated code portable, but that's rather inefficient.