[Mono-devel-list] LANDED: managed collation (CompareInfo) support

Atsushi Eno atsushi at ximian.com
Mon Aug 8 02:34:10 EDT 2005


I checked in managed collation (CompareInfo) support in mscorlib.dll.
It enables culture-sensitive string/character comparison support.

For now, it will not be activated unless you explicitly set
environment variable MONO_USE_MANAGED_COLLATION=yes.

Culture sensitive comparison is done in almost all areas where
basic System.String methods are used - Compare(), IndexOf(),
LastIndexOf(), StartsWith() and EndWith(). Note that culture-
sensitive comparison will happen even in InvariantCulture.

There are still some characters that I have not supported precise
implementation, but it should mostly work fine. If you found problem
in culture-sensitive comparison, please tell me and/or file a bug
to bugzilla: http://bugzilla.ximian.com

Atsushi Eno

More information about the Mono-devel-list mailing list