Hi,

Since mono 1.1.9 was released, I think it could be time to enable
managed collation by default.

Originally I planned to do that immediately after 1.1.9 has released,
but I found some regressions on running asp.net test. Now they are gone.

The attached patches are the actual changes. If you see problem
after the commit, then try setting environment variable

        MONO_DISABLE_MANAGED_COLLATION=yes

And if the problem goes away, please tell me what you are doing.
(If you can post a bug to bugzilla directly, then it's better ;-)

If no objection, I'll make this change tomorrow.

Atsushi Eno

Index: CompareInfo.cs
===================================================================
--- CompareInfo.cs      (revision 50272)
+++ CompareInfo.cs      (working copy)
@@ -42,8 +42,8 @@
        public class CompareInfo : IDeserializationCallback
        {
                static readonly bool useManagedCollation =
-                       Environment.internalGetEnvironmentVariable 
("MONO_USE_MANAGED_COLLATION")
-                       == "yes";
+                       Environment.internalGetEnvironmentVariable 
("MONO_DISABLE_MANAGED_COLLATION")
+                       != "yes";
 
                internal static bool UseManagedCollation {
                        get { return useManagedCollation && 
MSCompatUnicodeTable.IsReady; }
Index: mono.1
===================================================================
--- mono.1      (revision 50271)
+++ mono.1      (working copy)
@@ -569,6 +569,9 @@
 See the System.Diagnostics.DefaultTraceListener documentation for more
 information.
 .TP
+.I "MONO_DISABLE_MANAGED_COLLATION"
+If this environment variable is `yes', the runtime uses unmanaged collation 
(which actually means no culture-sensitive collation). It internally disables 
managed collation functionality invoked via the members of 
System.Globalization.CompareInfo class. Collation is enabled by default.
+.TP
 .I "MONO_XMLSERIALIZER_THS"
 Controls the threshold for the XmlSerializer to produce a custom
 serializer for a given class instead of using the Reflection-based
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to