Use the invarient culture calendar if the requested one is not available. Partial...
authorSebastien Pouliot <sebastien@xamarin.com>
Wed, 21 Aug 2013 18:15:27 +0000 (14:15 -0400)
committerSebastien Pouliot <sebastien@xamarin.com>
Wed, 21 Aug 2013 18:15:39 +0000 (14:15 -0400)
mcs/class/corlib/System.Globalization/CultureInfo.cs

index 8b740044e34df7f9a1c29cf1b997c5a5113abc92..f93cac39337e31c0ebe7c72057c1e3265629d4d5 100644 (file)
@@ -1004,7 +1004,7 @@ namespace System.Globalization
 
                        Type type = Type.GetType (name, false);
                        if (type == null)
-                               throw new NotSupportedException ("Calendar not found, if the linker is enabled make sure to preserve this type: " + name);
+                               return CreateCalendar (1 << CalendarTypeBits); // return invariant calandar if not found
                        return (Calendar) Activator.CreateInstance (type);
                }