On windows, new CultureInfo("zh-CHS") or new CultureInfo("Shared") (bogus name) throw a CultureNotFoundException. On OSX they don't.
However, "zh-CHS" was obtained by calling CultureInfo.GetCultures(CultureTypes.AllCultures) on full framework. reading #14558 I get the understanding that any string is now fair game and should be supported.
In light of this, when can one expect CultureNotFoundException and why is zh-CHS not recognized on windows, when the full framework API returns it as supported?
On windows,
new CultureInfo("zh-CHS")ornew CultureInfo("Shared")(bogus name) throw a CultureNotFoundException. On OSX they don't.However, "zh-CHS" was obtained by calling
CultureInfo.GetCultures(CultureTypes.AllCultures)on full framework. reading #14558 I get the understanding that any string is now fair game and should be supported.In light of this, when can one expect CultureNotFoundException and why is zh-CHS not recognized on windows, when the full framework API returns it as supported?