[Mono-dev] [PATCHES] Bug 480178 - System.Globalization.CharUnicodeInfo.GetUnicodeCategory() does not handle surrogate characters appropriately.

Miguel de Icaza miguel at novell.com
Mon May 17 15:47:03 EDT 2010

> That can certainly be done.  I suppose you envision a compile-time
> switch?  Is there already such an option/flag/preprocessor symbol I
> should use as a model?

For C code, just use the symbol DISABLE_ASTRAL, then we can add that to

> Sure.  I guess this means some more compile-time conditionalization of
> the runtime; corlib can just pass a version parameter at class init time
> as in v3 of my patches:
> #if NET_4_0
> 		private const int CategoryDataVersion = 4;
> #else
> 		private const int CategoryDataVersion = 2;
> #endif

Exactly right;   


More information about the Mono-devel-list mailing list